From e288a0f41568306a2f20016df72fd04e6ddec421 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 31 Jul 2012 13:21:09 +0300 Subject: [PATCH] window: warn on cursor load failure --- clients/window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 3a746abbc..c20221c7b 100644 --- a/clients/window.c +++ b/clients/window.c @@ -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