diff options
author | Timidger <APragmaticPlace@gmail.com> | 2018-01-21 14:57:24 -0500 |
---|---|---|
committer | Timidger <APragmaticPlace@gmail.com> | 2018-01-21 14:57:24 -0500 |
commit | 4478cf1ddc9109dd39ed447bdab854838a423e2a (patch) | |
tree | 4506824013e03325bb2ced264541116550bfafa0 /backend | |
parent | 79f2c8719364529056229b99bf9e49a994699fe7 (diff) |
Fixes #575
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 3 |
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 |