mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 20:35:42 +02:00
bar/wayland: log error message when failing to load cursor (image)
This commit is contained in:
parent
84ba1c231a
commit
74933c40ee
1 changed files with 5 additions and 0 deletions
|
@ -1200,6 +1200,11 @@ set_cursor(struct bar *_bar, const char *cursor)
|
||||||
seat->pointer.cursor = wl_cursor_theme_get_cursor(
|
seat->pointer.cursor = wl_cursor_theme_get_cursor(
|
||||||
seat->pointer.theme, cursor);
|
seat->pointer.theme, cursor);
|
||||||
|
|
||||||
|
if (seat->pointer.cursor == NULL) {
|
||||||
|
LOG_ERR("%s: failed to load cursor '%s'", seat->name, cursor);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
update_cursor_surface(backend, seat);
|
update_cursor_surface(backend, seat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue