mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
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.
This commit is contained in:
parent
b7e2a2584e
commit
6adca4089c
1 changed files with 1 additions and 1 deletions
|
@ -1424,7 +1424,7 @@ void scan_drm_connectors(struct wlr_drm_backend *drm,
|
||||||
// TODO: this results in connectors being enabled without a mode
|
// TODO: this results in connectors being enabled without a mode
|
||||||
// set
|
// set
|
||||||
wlr_output_update_enabled(&wlr_conn->output, wlr_conn->crtc != NULL);
|
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;
|
wlr_conn->status = DRM_MODE_CONNECTED;
|
||||||
new_outputs[new_outputs_len++] = wlr_conn;
|
new_outputs[new_outputs_len++] = wlr_conn;
|
||||||
|
|
Loading…
Reference in a new issue