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>
Tiago Vignatti 12 years ago committed by Kristian Høgsberg
parent b98905e810
commit ac78bb1017
  1. 3
      src/xwayland/window-manager.c

@ -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…
Cancel
Save