wayland: don't change the cursor if there is no pointer

https://bugzilla.gnome.org/show_bug.cgi?id=732206
This commit is contained in:
Emilio Pozuelo Monfort 2014-06-23 18:21:08 +02:00 committed by Matthias Clasen
parent 2651b99a13
commit 6de2c7fa0e

View File

@ -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,