diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-10-06 16:50:50 -0400 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-10-07 15:54:51 -0400 |
commit | 694e9bbb9d7114f39311d93e885e010606a88dae (patch) | |
tree | 0df44e5050b194b131988f32a844607979c1d914 /backend/drm | |
parent | 5b0719b17c9adb63d0220d4584e3bab53b16911a (diff) |
backend/drm: allocate connector CRTC on lease creation
This was leading to crash in compositors if the wanted connector had no CRTC
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 5e614d86..b7565d28 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1642,8 +1642,8 @@ struct wlr_drm_lease *wlr_drm_create_lease(struct wlr_output **outputs, objects[n_objects++] = conn->id; wlr_log(WLR_DEBUG, "Connector %d", conn->id); - if (!conn->crtc) { - wlr_log(WLR_ERROR, "Connector has no CRTC"); + if (!drm_connector_alloc_crtc(conn)) { + wlr_log(WLR_ERROR, "Failled to allocate connector CRTC"); return NULL; } |