summaryrefslogtreecommitdiff
path: root/src/Fl_Menu.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-03-10 10:14:58 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-03-10 10:14:58 +0100
commitf4f93fda159abf83937eece89ac574eff772a507 (patch)
treef984adda3fec1c6fd5e6804f8100f95ff0dc4989 /src/Fl_Menu.cxx
parentb09d09e3c5bed3f19feda37d2d1f06c4f4634f84 (diff)
Fix handling of menu widnows taller than their screen
A problem was visible with the menubar test app and a 2-screen system where screens are one above the other. When moving down the huge menu, it became positioned on the wrong screen.
Diffstat (limited to 'src/Fl_Menu.cxx')
-rw-r--r--src/Fl_Menu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index b85323ed2..500b20a5c 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -492,7 +492,7 @@ void menuwindow::autoscroll(int n) {
int Y = y()+Fl::box_dx(box())+2+n*itemheight;
int xx, ww;
- Fl_Window_Driver::driver(this)->menu_window_area(xx, scr_y, ww, scr_h);
+ Fl_Window_Driver::driver(this)->menu_window_area(xx, scr_y, ww, scr_h, this->screen_num());
if (n==0 && Y <= scr_y + itemheight) {
Y = scr_y - Y + 10;
} else if (Y <= scr_y + itemheight) {