From 0a6610c480289a7cb0ecc89ce0c4447180d71069 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 23 May 2024 16:38:51 +0200 Subject: Control screen used by Fl_Menu_Bar::play_menu() --- src/Fl_Menu.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 53c6a6c35..328f195d9 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -344,8 +344,8 @@ menuwindow::menuwindow(const Fl_Menu_Item* m, int X, int Y, int Wp, int Hp, menubartitle = menubar_title; origin = NULL; offset_y = 0; - - Fl_Window_Driver::driver(this)->menu_window_area(scr_x, scr_y, scr_w, scr_h); + int n = (Wp > 0 ? Fl::screen_num(X, Y, Wp, Hp) : -1); + Fl_Window_Driver::driver(this)->menu_window_area(scr_x, scr_y, scr_w, scr_h, n); if (!right_edge || right_edge > scr_x+scr_w) right_edge = scr_x+scr_w; if (m) m = m->first(); // find the first item that needs to be rendered -- cgit v1.2.3