summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-05-30 17:59:16 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-05-30 17:59:16 +0200
commitc13594f999ef6fc2c29a15eb1dc65e70aefac96c (patch)
treee7581eba32ae73d266eda35c3fc3d26872e14d2d /src/drivers
parent86a8d138f2f3e366ccaa185fa86b97e49534dfd8 (diff)
Fix for #1260 - part3: fix exploration of menu button window under Wayland
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx7
1 files changed, 7 insertions, 0 deletions
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());
+ }
}