diff options
author | emersion <contact@emersion.fr> | 2018-09-01 23:43:16 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-09-01 23:43:16 +0200 |
commit | e84f01168d55087932529301bb8e1c723244b72b (patch) | |
tree | 8e40b72293d7cbc45eb3711095a131cb8ac5add4 /backend | |
parent | cc3c5ebb674987a33d5d8c227756f66af61ec243 (diff) |
backend/drm: allow disabling outputs in NEEDS_MODESET state
This correctly frees CRTCs when disabling outputs without setting
a mode.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index a666ce71..c1fa1992 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; } |