aboutsummaryrefslogtreecommitdiff
path: root/xcursor
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-08 11:56:52 -0400
committerDrew DeVault <sir@cmpwn.com>2017-08-08 11:56:52 -0400
commit622a0d838b2d645ab8f649c6804276262d1eec50 (patch)
tree7526bf857a472a237920ff60608ed8f46fe4a8e9 /xcursor
parent9383aaf89ea468fc6eb1aff413bfe456c9aed739 (diff)
Add logging in wlr_cursor
Diffstat (limited to 'xcursor')
-rw-r--r--xcursor/wlr_cursor.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/xcursor/wlr_cursor.c b/xcursor/wlr_cursor.c
index c42f3d02..3a7da05b 100644
--- a/xcursor/wlr_cursor.c
+++ b/xcursor/wlr_cursor.c
@@ -26,6 +26,7 @@
#define _XOPEN_SOURCE 500
#include <wlr/render.h>
#include <wlr/xcursor.h>
+#include <wlr/util/log.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@@ -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: