output: remove noop backend check in wlr_output_cursor_set_image

The noop backend doesn't exist anymore.
This commit is contained in:
Simon Ser 2022-05-27 18:25:08 +02:00 committed by Isaac Freund
parent 71f8a48d38
commit e3e2a34cd8

View file

@ -377,9 +377,7 @@ bool wlr_output_cursor_set_image(struct wlr_output_cursor *cursor,
int32_t hotspot_x, int32_t hotspot_y) {
struct wlr_renderer *renderer = cursor->output->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;
return false;
}
output_cursor_reset(cursor);