aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-05-27 18:25:08 +0200
committerIsaac Freund <mail@isaacfreund.com>2022-05-31 11:40:47 +0000
commite3e2a34cd82c7a45ee174df6e64c2261883ccc20 (patch)
tree260c320ff6e3f2549268b3aac58dd6d03c5bbb45
parent71f8a48d380701de1e3331d53d470bd76f5f643b (diff)
output: remove noop backend check in wlr_output_cursor_set_image
The noop backend doesn't exist anymore.
-rw-r--r--types/output/cursor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/types/output/cursor.c b/types/output/cursor.c
index f3055c5c..c70b8e3d 100644
--- a/types/output/cursor.c
+++ b/types/output/cursor.c
@@ -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);