gdk/wayland: Drop motion hint mask from seat grab event masks

At best, it's just an awkward event mask sitting there for a backend
that does not need it. At worst, this may result in motion events being
eaten away in the right set of circumstances.

Avoid the pointer motion hint mask, and rely on events being further
than hints.

Related: https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/534#note_1526935
This commit is contained in:
Carlos Garnacho
2022-08-12 01:36:59 +02:00
parent 8137d2148c
commit 2c65884a5e

View File

@@ -4937,7 +4937,7 @@ gdk_wayland_seat_grab (GdkSeat *seat,
native,
GDK_OWNERSHIP_NONE,
owner_events,
GDK_ALL_EVENTS_MASK,
GDK_ALL_EVENTS_MASK & ~GDK_POINTER_MOTION_HINT_MASK,
_gdk_display_get_next_serial (display),
evtime,
FALSE);
@@ -4959,7 +4959,7 @@ gdk_wayland_seat_grab (GdkSeat *seat,
native,
GDK_OWNERSHIP_NONE,
owner_events,
GDK_ALL_EVENTS_MASK,
GDK_ALL_EVENTS_MASK & ~GDK_POINTER_MOTION_HINT_MASK,
_gdk_display_get_next_serial (display),
evtime,
FALSE);
@@ -4977,7 +4977,7 @@ gdk_wayland_seat_grab (GdkSeat *seat,
native,
GDK_OWNERSHIP_NONE,
owner_events,
GDK_ALL_EVENTS_MASK,
GDK_ALL_EVENTS_MASK & ~GDK_POINTER_MOTION_HINT_MASK,
_gdk_display_get_next_serial (display),
evtime,
FALSE);
@@ -5003,7 +5003,7 @@ gdk_wayland_seat_grab (GdkSeat *seat,
native,
GDK_OWNERSHIP_NONE,
owner_events,
GDK_ALL_EVENTS_MASK,
GDK_ALL_EVENTS_MASK & ~GDK_POINTER_MOTION_HINT_MASK,
_gdk_display_get_next_serial (display),
evtime,
FALSE);