aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimidger <APragmaticPlace@gmail.com>2018-01-21 14:57:24 -0500
committerTimidger <APragmaticPlace@gmail.com>2018-01-21 14:57:24 -0500
commit4478cf1ddc9109dd39ed447bdab854838a423e2a (patch)
tree4506824013e03325bb2ced264541116550bfafa0
parent79f2c8719364529056229b99bf9e49a994699fe7 (diff)
Fixes #575
-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 0d32605a..30eb1256 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -501,6 +501,9 @@ static bool wlr_drm_connector_set_cursor(struct wlr_output *output,
struct wlr_drm_renderer *renderer = &drm->renderer;
struct wlr_drm_crtc *crtc = conn->crtc;
+ if (!crtc) {
+ return false;
+ }
struct wlr_drm_plane *plane = crtc->cursor;
// We don't have a real cursor plane, so we make a fake one