diff --git a/xcursor/wlr_cursor.c b/xcursor/wlr_cursor.c index c42f3d02a..3a7da05b8 100644 --- a/xcursor/wlr_cursor.c +++ b/xcursor/wlr_cursor.c @@ -26,6 +26,7 @@ #define _XOPEN_SOURCE 500 #include #include +#include #include #include #include @@ -238,6 +239,16 @@ struct wlr_cursor_theme *wlr_cursor_theme_load(const char *name, int size) { load_default_theme(theme); } + wlr_log(L_DEBUG, "Loaded cursor theme '%s', available cursors:", + theme->name); + for (size_t i = 0; i < theme->cursor_count; ++i) { + struct wlr_cursor *c = theme->cursors[i]; + struct wlr_cursor_image *i = c->images[0]; + wlr_log(L_DEBUG, "%s (%u images) %dx%d+%d,%d", + c->name, c->image_count, + i->width, i->height, i->hotspot_x, i->hotspot_y); + } + return theme; out_error_name: