From c13594f999ef6fc2c29a15eb1dc65e70aefac96c Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 30 May 2025 17:59:16 +0200 Subject: Fix for #1260 - part3: fix exploration of menu button window under Wayland --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index c0963fa66..1a89d28c1 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1170,6 +1170,13 @@ static void popup_configure(void *data, struct xdg_popup *xdg_popup, int32_t x, // make selected item visible, if there's one Fl_Window_Driver::scroll_to_selected_item(window->fl_win); } + if (Fl_Window_Driver::current_menu_button && !Fl_Window_Driver::menu_leftorigin(window->fl_win) && + y < Fl_Window_Driver::current_menu_button->y()) { + Fl_Window *win = window->fl_win; + int Y = win->y(); + win->Fl_Widget::resize(win->x(), Y - win->h() - Fl_Window_Driver::current_menu_button->h(), + win->w(), win->h()); + } } -- cgit v1.2.3