aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-08-10 01:43:42 +1200
committerScott Anderson <ascent12@hotmail.com>2017-08-10 01:43:42 +1200
commita77fac07603028c869e7d3d1dee58d6972d29498 (patch)
treebbe2a20798907a6d513b84606cc676ca6f97c364 /backend/drm
parentef1f947d49ec37be707739ef12ef56c519d9dfb0 (diff)
Added null check on crtc
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/backend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index 76aef9b9..e361358e 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -54,6 +54,10 @@ static void session_signal(struct wl_listener *listener, void *data) {
struct wlr_output_state *output = drm->outputs->items[i];
wlr_drm_output_start_renderer(output);
+ if (!output->crtc) {
+ continue;
+ }
+
struct wlr_drm_plane *plane = output->crtc->cursor;
drm->iface->crtc_set_cursor(drm, output->crtc,