From 8807efe939baf7fe7619e34a869ba30c05a946ae Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 21 May 2024 09:23:24 +0200 Subject: [PATCH] More details about handling modal windows and various gnome versions --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index c7e2bda1a..76b7da691 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1517,7 +1517,8 @@ void Fl_Wayland_Window_Driver::makeWindow() } if (scr_driver->seat->gtk_shell && pWindow->modal() && (new_window->kind == DECORATED || new_window->kind == UNFRAMED)) { - // useful with gnome-shell --version < 45, useless but no harm with version ≥ 46, ? with 45 + // Useful to position modal windows above their parent with "gnome-shell --version" ≤ 45.2, + // useless but harmless with "gnome-shell --version" ≥ 46.0. struct gtk_surface1 *gtk_surface = gtk_shell1_get_gtk_surface(scr_driver->seat->gtk_shell, new_window->wl_surface); gtk_surface1_set_modal(gtk_surface);