mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
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:
parent
b64b159109
commit
a5417ebee1
@ -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);
|
||||
|
@ -1265,9 +1265,6 @@ meta_screen_update_cursor (MetaScreen *screen)
|
||||
MetaCursorTracker *tracker = meta_cursor_tracker_get_for_screen (screen);
|
||||
|
||||
cursor_ref = meta_cursor_reference_from_theme (cursor);
|
||||
if (cursor_ref == NULL)
|
||||
meta_fatal ("Could not find cursor. Perhaps set XCURSOR_PATH?");
|
||||
|
||||
meta_cursor_tracker_set_root_cursor (tracker, cursor_ref);
|
||||
meta_cursor_reference_unref (cursor_ref);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user