diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-11 17:40:38 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-11 17:40:38 +0100 |
| commit | 9210e3efbf789a15bef1d9e84b335a4c43c0e25d (patch) | |
| tree | 066032b8b7e729a81bc49bbdef8f5af4ecff3610 /src/Fl_Window_Driver.H | |
| parent | dc4c443bfc13bde55012e1273d76d117902f01b2 (diff) | |
Wayland: Further improved implementation of menu windows
Tall menus now work also as single popup window and show the correct selected item.
Groups of popups with a menutitle, an associated menuwindow, and possibly submenus
are constructed around the menuwindow, the menutitle being a child popup of the
menuwindow. This positions these popup groups better than before.
Diffstat (limited to 'src/Fl_Window_Driver.H')
| -rw-r--r-- | src/Fl_Window_Driver.H | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Window_Driver.H b/src/Fl_Window_Driver.H index bf0be9fd6..860f29568 100644 --- a/src/Fl_Window_Driver.H +++ b/src/Fl_Window_Driver.H @@ -192,13 +192,15 @@ public: // when that's not the case, as with Wayland. virtual void reposition_menu_window(int x, int y); virtual void menu_window_area(int &X, int &Y, int &W, int &H, int nscreen = -1); - static Fl_Window *menu_parent(); + static Fl_Window *menu_parent(int *display_height = NULL); static Fl_Window *menu_leftorigin(Fl_Window*); static Fl_Window *menu_title(Fl_Window*); static int menu_itemheight(Fl_Window*); static int menu_bartitle(Fl_Window*); static int menu_selected(Fl_Window*); static Fl_Window *extra_menutitle(Fl_Window *old, int Y); + static bool is_floating_title(Fl_Window *); + static void scroll_to_selected_item(Fl_Window *); virtual fl_uintptr_t os_id() { return 0; } }; |
