aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-03 12:04:12 +0200
committerSimon Ser <contact@emersion.fr>2022-10-03 12:04:12 +0200
commit6adca4089cf4fb377bacf8efdf32f7dcbd4001e3 (patch)
tree08a8d7ed7c47b8b464faf24257ff1e829fb762aa /backend/drm
parentb7e2a2584e99f0b11d564a5cc9c44fc5ba974a3d (diff)
backend/drm: don't unconditionally set desired_enabled
We were unconditonally setting desired_enabled = true for all connected connectors. This makes realloc_crtcs() always keep a CRTC active for these, even if the user doesn't want to enable them.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index cddfdf13..29c58dfe 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1424,7 +1424,7 @@ void scan_drm_connectors(struct wlr_drm_backend *drm,
// TODO: this results in connectors being enabled without a mode
// set
wlr_output_update_enabled(&wlr_conn->output, wlr_conn->crtc != NULL);
- wlr_conn->desired_enabled = true;
+ wlr_conn->desired_enabled = wlr_conn->crtc != NULL;
wlr_conn->status = DRM_MODE_CONNECTED;
new_outputs[new_outputs_len++] = wlr_conn;