summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-02-02 17:03:09 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-02-02 17:09:14 +0100
commit4e75549e7bd8b0ea032cf279066d0fac09577067 (patch)
treed624dee7f9e58a9694328753f884cb6099324d7f /src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
parentfb00fb3d66d01613a1284090608db82424d83b0d (diff)
Update dependencies and fix whitespace errors
- replace tabs with spaces - remove trailing whitespace
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index b54acac2f..26c00f10c 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -996,7 +996,7 @@ static const char *get_prog_name() {
the source window and the display top. FLTK can later reposition the same tall popup,
without the constraint not to go beyond the display top, at the exact position so that
the desired series of menu items appear in the visible part of the tall popup.
-
+
In case 1) above, the values that represent the display bounds are given very
large values. That's done by member function Fl_Wayland_Window_Driver::menu_window_area().
Consequently, FLTK computes an initial layout of future popups relatively to
@@ -1010,7 +1010,7 @@ static const char *get_prog_name() {
process_menu_or_tooltip(), makeWindow() calls Fl_Window::wait_for_expose() so its constrained
position is known before computing the position of the next popup. This ensures each
popup is correctly placed relatively to its parent.
-
+
Groups of popups containing a menutitle, the associated menuwindow, and optionally
a submenu window and that don't belong to an Fl_Menu_Bar are mapped in a different order:
the menuwindow is mapped first, and the menutitle is mapped second above it as a child popup.
@@ -1019,7 +1019,7 @@ static const char *get_prog_name() {
the menutitle is mapped only after the menuwindow has been mapped, as a child of it.
This positions better the popup group in the display relatively to where the popup
was created.
-
+
In case 2) above, a tall popup is mapped with XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_Y
which puts its top at the display top border. The Wayland system then calls the
popup_configure() callback function with the x,y coordinates of the top left corner