bar/wayland: log error message when failing to load cursor (image)

This commit is contained in:
Daniel Eklöf 2020-07-11 07:37:01 +02:00
parent 84ba1c231a
commit 74933c40ee
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1200,6 +1200,11 @@ set_cursor(struct bar *_bar, const char *cursor)
seat->pointer.cursor = wl_cursor_theme_get_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);
}