[gtk/gtk-4-6: 10/11] gdk/wayland: Drop surface checks on wl_pointer.leave handling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-6: 10/11] gdk/wayland: Drop surface checks on wl_pointer.leave handling
- Date: Thu, 29 Sep 2022 10:25:54 +0000 (UTC)
commit 5db8a550dbf1ccb07e805183b4f3f36415453330
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 5 18:33:50 2022 +0200
gdk/wayland: Drop surface checks on wl_pointer.leave handling
Even though the argument is non-nullable, GTK sometimes incurs in that
by itself by destroying the surface while the event is in flight. This
is the case of popping down a GtkDropdown. When this happens we simply
ignore the crossing event, but we should let it through instead, the
compositor did not send it in vain and we possibly still have pointer
state to undo.
Drop the surface checks, so that the event is propagated along GTK.
gdk/wayland/gdkdevice-wayland.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 9c21a6a989..1b697938ad 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1557,12 +1557,6 @@ pointer_handle_leave (void *data,
GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (seat->display);
GdkDeviceGrabInfo *grab;
- if (!surface)
- return;
-
- if (!GDK_IS_SURFACE (wl_surface_get_user_data (surface)))
- return;
-
if (!seat->pointer_info.focus)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]