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:
Jasper St. Pierre
2015-08-18 13:58:58 -07:00
parent b64b159109
commit a5417ebee1
2 changed files with 1 additions and 4 deletions

View File

@ -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);