forked from AuroraMiddleware/gtk
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:
parent
2651b99a13
commit
6de2c7fa0e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user