backend/drm: nuke wlr_drm_connector.desired_enabled

This field becomes stale too easily: for instance, see 6adca4089c
("backend/drm: don't unconditionally set desired_enabled").
Additionally, drm_connector_alloc_crtc() needs to do some weird
dance, restoring its previous value.

Instead, add a connector arg to realloc_crtcs() to indicate a new
connector we want to enable.
This commit is contained in:
Simon Ser 2022-10-03 12:21:36 +02:00 committed by Alexander Orzechowski
parent 5a207aea72
commit f4cf0a8d86
2 changed files with 18 additions and 26 deletions

View file

@ -108,7 +108,6 @@ struct wlr_drm_connector {
struct wlr_drm_backend *backend;
char name[24];
drmModeConnection status;
bool desired_enabled;
uint32_t id;
uint64_t max_bpc;
struct wlr_drm_lease *lease;