aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/drm/drm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 8dc83cd3..d1abe773 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -977,6 +977,9 @@ static bool drm_connector_move_cursor(struct wlr_output *output,
return false;
}
struct wlr_drm_plane *plane = conn->crtc->cursor;
+ if (!plane) {
+ return false;
+ }
struct wlr_box box = { .x = x, .y = y };