From db94990c1f87d0c8ea3ba53e136b756f5619ad8a Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 19 Aug 2025 14:08:00 +0200 Subject: Fix for Wayland only part of #1295 related to "mangled" events --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/drivers') diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index ffa19271e..134d0091a 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -245,6 +245,8 @@ static void pointer_leave(void *data, struct wl_pointer *wl_pointer, need_leave = win->top_window(); // we leave a sub or toplevel window wl_display_roundtrip(fl_wl_display()); // pointer_enter to other win, if applicable, will run if (need_leave) { // we really left the sub-or-top win and did not enter another + extern Fl_Window *fl_xmousewin; + fl_xmousewin = 0; Fl::handle(FL_LEAVE, need_leave); } } -- cgit v1.2.3