summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-05-20 18:22:19 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-05-20 18:22:19 +0200
commitc5d6382fb168cab5285b2bb6556512dcaaca321f (patch)
treef596be38f1c89a32e9ad23392409ad20350a27a7 /src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
parentf903cf80261b9463a3afd72ab26b892003cb68a7 (diff)
Wayland: don't call gtk_surface1_release() probably not useful
Also, add comment about when call to gtk_surface1_set_modal() is useful or useless but harmless.
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 12b85d11f..c7e2bda1a 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -1517,10 +1517,10 @@ 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
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);
- gtk_surface1_release(gtk_surface);
}
}