If we can't find a cursor for whatever reason, don't crash the client in
pointer_surface_frame_callback.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
uint32_t time)
{
struct input *input = data;
- struct wl_cursor *cursor =
- input->display->cursors[input->current_cursor];
+ struct wl_cursor *cursor;
int i;
if (callback) {
if (input->current_cursor == CURSOR_UNSET)
return;
+ cursor = input->display->cursors[input->current_cursor];
+ if (!cursor)
+ return;
/* FIXME We don't have the current time on the first call so we set
* the animation start to the time of the first frame callback. */