diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2014-06-23 18:21:08 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-06-28 00:12:20 -0400 |
commit | 6de2c7fa0e1738e180e47c6687aa31c98bf1891d (patch) | |
tree | 42e876621af52a9c45f31680ff0d93602be72477 | |
parent | 2651b99a131fd7633bb9ce4fbb02aaff75c6dff0 (diff) | |
download | gtk+-6de2c7fa0e1738e180e47c6687aa31c98bf1891d.tar.gz |
wayland: don't change the cursor if there is no pointer
https://bugzilla.gnome.org/show_bug.cgi?id=732206
-rw-r--r-- | gdk/wayland/gdkdevice-wayland.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index 327c12483e..9471d31b5b 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -183,6 +183,10 @@ gdk_wayland_device_update_window_cursor (GdkWaylandDeviceData *wd) buffer = _gdk_wayland_cursor_get_buffer (wd->cursor, wd->cursor_image_index, &x, &y, &w, &h, &scale); + + if (!wd->wl_pointer) + return FALSE; + wl_pointer_set_cursor (wd->wl_pointer, wd->enter_serial, wd->pointer_surface, |