aboutsummaryrefslogtreecommitdiff
path: root/xcursor
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-20 19:31:22 +0200
committerSimon Ser <contact@emersion.fr>2021-04-26 20:11:05 +0200
commit1a5530d14dec213376240215950b7a4c25b46261 (patch)
tree01795d8d16c56242a48015e342d0eb180d7ba0d4 /xcursor
parent5c699f09cb7cc7bf9d93756f1fa4227ffffe25fe (diff)
xcursor: quiet debug log
Stop listing all available cursors each time a cursor theme is loaded. They can be obtained from the CLI instead, e.g. ls /usr/share/icons/Adwaita/cursors
Diffstat (limited to 'xcursor')
-rw-r--r--xcursor/wlr_xcursor.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/xcursor/wlr_xcursor.c b/xcursor/wlr_xcursor.c
index a11d77a0..a35db0dd 100644
--- a/xcursor/wlr_xcursor.c
+++ b/xcursor/wlr_xcursor.c
@@ -240,15 +240,8 @@ struct wlr_xcursor_theme *wlr_xcursor_theme_load(const char *name, int size) {
load_default_theme(theme);
}
- wlr_log(WLR_DEBUG, "Loaded cursor theme '%s', available cursors:",
- theme->name);
- for (size_t i = 0; i < theme->cursor_count; ++i) {
- struct wlr_xcursor *c = theme->cursors[i];
- struct wlr_xcursor_image *i = c->images[0];
- wlr_log(WLR_DEBUG, "%s (%u images) %" PRIu32 "x%" PRIu32 "+%" PRIu32 ",%" PRIu32,
- c->name, c->image_count,
- i->width, i->height, i->hotspot_x, i->hotspot_y);
- }
+ wlr_log(WLR_DEBUG, "Loaded cursor theme '%s' at size %d (%d available cursors)",
+ theme->name, size, theme->cursor_count);
return theme;