From e84f01168d55087932529301bb8e1c723244b72b Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 1 Sep 2018 23:43:16 +0200 Subject: [PATCH] backend/drm: allow disabling outputs in NEEDS_MODESET state This correctly frees CRTCs when disabling outputs without setting a mode. --- backend/drm/drm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index a666ce71a..c1fa19924 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -344,7 +344,8 @@ static void drm_connector_start_renderer(struct wlr_drm_connector *conn) { void enable_drm_connector(struct wlr_output *output, bool enable) { struct wlr_drm_connector *conn = (struct wlr_drm_connector *)output; - if (conn->state != WLR_DRM_CONN_CONNECTED) { + if (conn->state != WLR_DRM_CONN_CONNECTED + && conn->state != WLR_DRM_CONN_NEEDS_MODESET) { return; }