mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
output: do nothing in output_set_image if backend has no renderer
This is useful when using the noop backend for example.
This commit is contained in:
parent
7a2f929201
commit
dc5d1d08ef
1 changed files with 5 additions and 1 deletions
|
@ -722,7 +722,11 @@ bool wlr_output_cursor_set_image(struct wlr_output_cursor *cursor,
|
|||
int32_t hotspot_x, int32_t hotspot_y) {
|
||||
struct wlr_renderer *renderer =
|
||||
wlr_backend_get_renderer(cursor->output->backend);
|
||||
assert(renderer);
|
||||
if (!renderer) {
|
||||
// if the backend has no renderer, we can't draw a cursor, but this is
|
||||
// actually okay, for ex. with the noop backend
|
||||
return true;
|
||||
}
|
||||
|
||||
output_cursor_reset(cursor);
|
||||
|
||||
|
|
Loading…
Reference in a new issue