From 9b5d40ad973395ceed431abd2e6165ec5ffd70bd Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 11 Mar 2025 17:35:29 +0100 Subject: Fix "Wayland: Huge menu hiding unexpectedly when moving a mouse (#1115) This commit also computes work-area size for single-display settings. --- src/screen_xywh.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/screen_xywh.cxx') diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index 2fedf86fa..ab72c1c2a 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -95,9 +95,8 @@ void Fl::screen_work_area(int &X, int &Y, int &W, int &H, int mx, int my) \param[out] X,Y,W,H the work area bounding box \param[in] n the screen number (0 to Fl::screen_count() - 1) \see void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my) - \note Under X11, the screen work area is given values that differ from that screen's bounding box - only if the system contains a single screen. Under Wayland, a screen work area is always - equal to that screen's bounding box. + \note Under X11 and Wayland, the screen work area is given values that differ + from that screen's bounding box only if the system contains a single screen. \note Like all quantities accessible via public APIs of FLTK, values of \p X,Y,W,H are given in FLTK units, that is, in drawing units divided by the scaling factor of screen \p n. */ -- cgit v1.2.3