Avoids a segfault whenever we get a key event, and try to set the
cursor, dereferencing a NULL input->pointer.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
struct wl_cursor *cursor;
struct wl_cursor_image *image;
+ if (!input->pointer)
+ return;
+
cursor = input->display->cursors[input->current_cursor];
if (!cursor)
return;
input->cursor_frame_cb = NULL;
}
+ if (!input->pointer)
+ return;
+
if (input->current_cursor == CURSOR_BLANK) {
wl_pointer_set_cursor(input->pointer,
input->pointer_enter_serial,