[gtk/wip/carlosg/seat-grab-pointer-hint] gdk/wayland: Drop motion hint mask from seat grab event masks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/seat-grab-pointer-hint] gdk/wayland: Drop motion hint mask from seat grab event masks
- Date: Thu, 11 Aug 2022 23:56:42 +0000 (UTC)
commit 2c65884a5e31afe3ea5f7983ec423c8e39c5e9f2
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 12 01:36:59 2022 +0200
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
gdk/wayland/gdkdevice-wayland.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 67bd322340..ed6ad3b138 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]