window: warn on cursor load failure
This commit is contained in:
committed by
Kristian Høgsberg
parent
56464253c0
commit
e288a0f415
+5
-1
@@ -652,10 +652,14 @@ create_cursors(struct display *display)
|
|||||||
display->cursors =
|
display->cursors =
|
||||||
malloc(ARRAY_LENGTH(cursors) * sizeof display->cursors[0]);
|
malloc(ARRAY_LENGTH(cursors) * sizeof display->cursors[0]);
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_LENGTH(cursors); i++)
|
for (i = 0; i < ARRAY_LENGTH(cursors); i++) {
|
||||||
display->cursors[i] =
|
display->cursors[i] =
|
||||||
wl_cursor_theme_get_cursor(display->cursor_theme,
|
wl_cursor_theme_get_cursor(display->cursor_theme,
|
||||||
cursors[i]);
|
cursors[i]);
|
||||||
|
if (!display->cursors[i])
|
||||||
|
fprintf(stderr, "could not load cursor '%s'\n",
|
||||||
|
cursors[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user