summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-05-21 09:23:24 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-05-21 09:23:24 +0200
commit8807efe939baf7fe7619e34a869ba30c05a946ae (patch)
tree35c70470bfba53bb8b6fea41464e52b4989bec18
parentc5d6382fb168cab5285b2bb6556512dcaaca321f (diff)
More details about handling modal windows and various gnome versions
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx3
1 files changed, 2 insertions, 1 deletions
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);