diff options
author | Simon Ser <contact@emersion.fr> | 2021-09-07 11:31:10 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-09-07 22:33:40 +0200 |
commit | 42dba9dc906bc9abc248b8d0b834fc580db62ee8 (patch) | |
tree | 3ca010804677d45e0c5c99d10df1cc7ae8e83952 /backend/drm | |
parent | b01d97a38ffc502ce15bdd1ff9256290ff422440 (diff) |
backend/drm: drop wlr_drm_connector.desired_mode
Previously used by attempt_enable_needs_modeset, but this has been
dropped in the previous commit.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 7ed8b773..884a6274 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -689,7 +689,6 @@ static bool drm_connector_set_mode(struct wlr_drm_connector *conn, } conn->desired_enabled = wlr_mode != NULL; - conn->desired_mode = wlr_mode; if (wlr_mode == NULL) { if (conn->crtc != NULL) { @@ -730,7 +729,6 @@ static bool drm_connector_set_mode(struct wlr_drm_connector *conn, } conn->status = WLR_DRM_CONN_CONNECTED; - conn->desired_mode = NULL; wlr_output_update_mode(&conn->output, wlr_mode); wlr_output_update_enabled(&conn->output, true); conn->desired_enabled = true; @@ -904,7 +902,6 @@ static void drm_connector_destroy_output(struct wlr_output *output) { conn->status = WLR_DRM_CONN_DISCONNECTED; conn->desired_enabled = false; - conn->desired_mode = NULL; conn->possible_crtcs = 0; conn->pending_page_flip_crtc = 0; @@ -1114,7 +1111,6 @@ static void realloc_crtcs(struct wlr_drm_backend *drm) { wlr_drm_conn_log(conn, WLR_DEBUG, "Output has lost its CRTC"); conn->status = WLR_DRM_CONN_NEEDS_MODESET; wlr_output_update_enabled(&conn->output, false); - conn->desired_mode = conn->output.current_mode; wlr_output_update_mode(&conn->output, NULL); } continue; |