From 9ffeef76975579e0d838ea781a64ec66b92c9851 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 2 May 2023 17:59:08 +0200 Subject: Wayland: problem with menus on secondary monitor - cont'd (#724) --- src/Fl_Menu.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Fl_Menu.cxx') diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 91dda87b9..d67b116d0 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -186,6 +186,12 @@ static menuwindow *to_menuwindow(Fl_Window *win) { return ((window_with_items*)win)->as_menuwindow(); } +/** Returns whether win is a menutitle window */ +bool Fl_Window_Driver::is_menutitle(Fl_Window *win) { + if (!win->menu_window()) return false; + return (((window_with_items*)win)->as_menuwindow() == NULL); +} + /** Accessor to the "origin" member variable of class menuwindow. Variable origin is not NULL when 2 menuwindow's occur, one being a submenu of the other; it links the menuwindow at right to the one at left. */ -- cgit v1.2.3