cursor: Move check for cursor NULL-ness
Before, it used to be in the screen, but now, meta_cursor_reference_from_theme can never fail. Move it to where we load the images from the cursor name.
This commit is contained in:
@ -313,7 +313,7 @@ load_cursor_image (MetaCursorReference *cursor)
|
||||
cursor->current_frame = 0;
|
||||
cursor->xcursor_images = load_cursor_on_client (cursor->cursor);
|
||||
if (!cursor->xcursor_images)
|
||||
return;
|
||||
meta_fatal ("Could not find cursor. Perhaps set XCURSOR_PATH?");
|
||||
}
|
||||
|
||||
image = meta_cursor_reference_get_current_frame_image (cursor);
|
||||
|
Reference in New Issue
Block a user