window: fix check of cursor image load result

Rafal Mielniczuk 13 years ago committed by Kristian Høgsberg
parent d42f457b66
commit 87e4c9354e
  1. 4
      clients/window.c

@ -676,7 +676,7 @@ create_cursors(struct display *display)
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
images[i] = XcursorLibraryLoadImages(cursors[i], NULL, 32); images[i] = XcursorLibraryLoadImages(cursors[i], NULL, 32);
if (!images) { if (!images[i]) {
fprintf(stderr, "Error loading cursor: %s\n", fprintf(stderr, "Error loading cursor: %s\n",
cursors[i]); cursors[i]);
continue; continue;
@ -687,7 +687,7 @@ create_cursors(struct display *display)
display->cursor_shm_pool = shm_pool_create(display, pool_size); display->cursor_shm_pool = shm_pool_create(display, pool_size);
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
if (!images) if (!images[i])
continue; continue;
cursor = &display->cursors[i]; cursor = &display->cursors[i];

Loading…
Cancel
Save