From d05c0790a36f4d1597e90fe050831d40edd590e2 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 10 Mar 2026 10:37:34 +0100 Subject: [PATCH] Improve control of screen where FLTK positions menu windows (#1376) --- src/Fl_Menu.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 7331a04a5..b7302ee75 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -119,6 +119,8 @@ protected: end(); set_modal(); clear_border(); + // Put it on same screen as that where Menu_Window::parent_ is. + screen_num(Fl_Window_Driver::menu_parent(NULL)->screen_num()); } public: const Fl_Menu_Item* menu;