aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-10-31 11:00:40 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2023-10-31 13:37:00 +0000
commit22df8d38478566d0e4fe741ef57f7263ba610a01 (patch)
tree94878c2f6fc2c1b58781f1e3926ced0b09583c09
parentdbf20b0ad3bce40845eba9a44f55098b9f441fb9 (diff)
cursor: log missing XCursor
Log a debug message when the XCursor theme is missing a cursor. Eases debugging. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3746
-rw-r--r--types/wlr_cursor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c
index 8a510b6c..ee41337a 100644
--- a/types/wlr_cursor.c
+++ b/types/wlr_cursor.c
@@ -553,6 +553,7 @@ static void cursor_output_cursor_update(struct wlr_cursor_output_cursor *output_
wlr_xcursor_manager_load(manager, scale);
struct wlr_xcursor *xcursor = wlr_xcursor_manager_get_xcursor(manager, name, scale);
if (xcursor == NULL) {
+ wlr_log(WLR_DEBUG, "XCursor theme is missing '%s' cursor", name);
wlr_output_cursor_set_buffer(output_cursor->output_cursor, NULL, 0, 0);
return;
}