From ef33f3e0e2dac2087a4d3096146eb0c628a3a326 Mon Sep 17 00:00:00 2001
From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
Date: Sat, 11 May 2024 19:52:00 +0200
Subject: Wayland: call gtk_surface1_set_modal() of GTK Shell protocol for
modal wins
This has the Mutter compositor open modal windows at the center of their parent window
rather than at an unpredictable display position before this commit.
---
documentation/src/wayland.dox | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'documentation')
diff --git a/documentation/src/wayland.dox b/documentation/src/wayland.dox
index 2b8ac60c9..d62e9da78 100644
--- a/documentation/src/wayland.dox
+++ b/documentation/src/wayland.dox
@@ -920,7 +920,7 @@ setting, FLTK implements part of the
GTK Shell protocol as follows.
Mutter, gnome's Wayland compositor, declares its support of the GTK Shell
protocol calling \c registry_handle_global() with its \c interface argument equal to
-\c "gtk_shell1". FLTK initializes then a static global variable \c gtk_shell of type
+\c "gtk_shell1". FLTK initializes then member variable \c seat->gtk_shell of type
struct gtk_shell1*.
Member functions of \c pointer_listener mentioned above run for all mouse events
@@ -939,7 +939,7 @@ when the mouse leaves this titlebar. When there's a click on a titlebar,
member function \c pointer_button() runs this code
\code
if (gtk_shell_surface && state == WL_POINTER_BUTTON_STATE_PRESSED && button == BTN_MIDDLE) {
- struct gtk_surface1 *gtk_surface = gtk_shell1_get_gtk_surface(gtk_shell, gtk_shell_surface);
+ struct gtk_surface1 *gtk_surface = gtk_shell1_get_gtk_surface(seat->gtk_shell, gtk_shell_surface);
gtk_surface1_titlebar_gesture(gtk_surface, serial, seat->wl_seat, GTK_SURFACE1_GESTURE_MIDDLE_CLICK);
gtk_surface1_release(gtk_surface);
return;
--
cgit v1.2.3