mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-02-16 17:22:43 +00:00
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
This commit is contained in:
parent
dbf20b0ad3
commit
22df8d3847
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user