diff --git a/compositor/compositor.c b/compositor/compositor.c index e0d7b32b..d3908b5c 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -552,6 +552,10 @@ create_pointer_images(struct wlsc_compositor *ec) create_sprite_from_png(ec, pointer_images[i].filename, SPRITE_USE_CURSOR); + if (!ec->pointer_sprites[i]) { + fprintf(stderr, "Error loading pointer image: %s\n", + pointer_images[i].filename); + } } }