diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-05-02 17:59:08 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-05-02 17:59:08 +0200 |
| commit | 9ffeef76975579e0d838ea781a64ec66b92c9851 (patch) | |
| tree | 5d7610010159007e6620ff4a9c548ecf5b5cbe4a /src/Fl_Menu.cxx | |
| parent | ef5bf602399c07ff534b28089d9e7baee98d9911 (diff) | |
Wayland: problem with menus on secondary monitor - cont'd (#724)
Diffstat (limited to 'src/Fl_Menu.cxx')
| -rw-r--r-- | src/Fl_Menu.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |
