window: warn on cursor load failure

This commit is contained in:
Pekka Paalanen 2012-07-31 13:21:09 +03:00 committed by Kristian Høgsberg
parent 56464253c0
commit e288a0f415
1 changed files with 5 additions and 1 deletions

View File

@ -652,10 +652,14 @@ create_cursors(struct display *display)
display->cursors =
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] =
wl_cursor_theme_get_cursor(display->cursor_theme,
cursors[i]);
if (!display->cursors[i])
fprintf(stderr, "could not load cursor '%s'\n",
cursors[i]);
}
}
static void