[gtk+] wayland: Disallow setting the cursor on the touch master pointer
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Disallow setting the cursor on the touch master pointer
- Date: Thu, 19 Nov 2015 22:37:22 +0000 (UTC)
commit c405f810cdc8f1de7d60dde4f5e31ee81a88a382
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Nov 19 20:06:07 2015 +0100
wayland: Disallow setting the cursor on the touch master pointer
That "pointer" is not backed by anything in the windowing system, ignore
cursor updates there.
gdk/wayland/gdkdevice-wayland.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index eefd38c..58f5b9e 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -283,6 +283,9 @@ gdk_wayland_device_set_window_cursor (GdkDevice *device,
{
GdkWaylandDeviceData *wd = GDK_WAYLAND_DEVICE (device)->device;
+ if (device == wd->touch_master)
+ return;
+
/* Setting the cursor to NULL means that we should use
* the default cursor
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]