gdk/wayland: Drop surface checks on wl_pointer.leave handling
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 5 Aug 2022 16:33:50 +0000 (18:33 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 5 Aug 2022 17:25:13 +0000 (19:25 +0200)
commitc77b98d71635a4cbec4b089b17659d17af09baf9
treef89bad3e945325ea70339418fa6b57852efdd626
parent8eda182f241d270d479a188af6b8eb7f716f5c7b
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