aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_output.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 0c7003a7..2ed8733f 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -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);