Fix "Wayland: Tooltip at bottom right screen flickers" (#1543)
Build and Test / build-linux (push) Canceled after 0s
Build and Test / build-wayland (push) Canceled after 0s
Build and Test / build-wayland-arm64 (push) Canceled after 0s
Build and Test / build-macos (push) Canceled after 0s
Build and Test / build-windows (push) Canceled after 0s
Build and Test / build-windows-arm (push) Canceled after 0s

This commit is contained in:
ManoloFLTK
2026-07-26 15:51:09 +02:00
parent 662ad3028e
commit ec7dbed326
@@ -1444,6 +1444,15 @@ bool Fl_Wayland_Window_Driver::process_menu_or_tooltip(struct wld_window *new_wi
}
xdg_positioner_set_constraint_adjustment(positioner, constraint);
}
if (pWindow->tooltip_window()) {
xdg_positioner_set_constraint_adjustment(positioner,
XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_X |
XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_FLIP_Y);
int dummy, scr_H;
Fl::screen_xywh(dummy, dummy, dummy, scr_H);
popup_y = Fl::event_y();
if (popup_y + pWindow->h() > scr_H) popup_y--;
}
if (!(Fl_Window_Driver::menu_title(pWindow) && Fl_Window_Driver::menu_bartitle(pWindow))) {
xdg_positioner_set_offset(positioner, 0, popup_y);
}