[gtk/event-source-device: 2/3] wayland: Don't generate events with master devices as source
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/event-source-device: 2/3] wayland: Don't generate events with master devices as source
- Date: Tue, 19 May 2020 20:01:34 +0000 (UTC)
commit 76666a4204f1c57f125281a56608b74a7419e1f4
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 19 15:58:01 2020 -0400
wayland: Don't generate events with master devices as source
When emulating crossing or focus events, don't pass the
same device as master and slave. It is only one, not the
other.
gdk/wayland/gdkdevice-wayland.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 65e556abee..29a82be0da 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -592,7 +592,7 @@ emulate_crossing (GdkSurface *surface,
event = gdk_crossing_event_new (type,
surface,
device,
- device,
+ NULL,
time_,
state,
x, y,
@@ -633,7 +633,7 @@ emulate_focus (GdkSurface *surface,
gboolean focus_in,
guint32 time_)
{
- GdkEvent *event = gdk_focus_event_new (surface, device, device, focus_in);
+ GdkEvent *event = gdk_focus_event_new (surface, device, NULL, focus_in);
_gdk_wayland_display_deliver_event (gdk_surface_get_display (surface), event);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]