mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
backend/drm: allocate connector CRTC on lease creation
This was leading to crash in compositors if the wanted connector had no CRTC
This commit is contained in:
parent
5b0719b17c
commit
694e9bbb9d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue