xwm: Fail safely if cursor is not found
It will use the stock 'x' cursor instead when the system cursors are not provided. Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
parent
b98905e810
commit
ac78bb1017
@ -206,6 +206,9 @@ xcb_cursor_library_load_cursor(struct weston_wm *wm, const char *file)
|
||||
size = 32;
|
||||
|
||||
images = XcursorLibraryLoadImages (file, NULL, size);
|
||||
if (!images)
|
||||
return -1;
|
||||
|
||||
cursor = xcb_cursor_images_load_cursor (wm, images);
|
||||
XcursorImagesDestroy (images);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user