aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-06-26 18:02:02 -0400
committerAlexander Orzechowski <alex@ozal.ski>2023-06-27 11:47:58 -0400
commit824339938530a3f13c006fa4eefa263a974a3cab (patch)
treeb81e1991cc1fe9b2a9634a62765be5de899db7ce /backend/drm
parent530e58b96e00ffc6a35fc7d72e1b0d45fe928528 (diff)
output: Set output mode during main commit
Removes duplication across all the backends to finally apply the mode to the output.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 384971d1..c07b7e13 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -762,19 +762,6 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
conn->cursor_enabled = false;
conn->crtc = NULL;
}
- if (pending.base->committed & WLR_OUTPUT_STATE_MODE) {
- switch (pending.base->mode_type) {
- case WLR_OUTPUT_STATE_MODE_FIXED:
- wlr_output_update_mode(&conn->output, pending.base->mode);
- break;
- case WLR_OUTPUT_STATE_MODE_CUSTOM:
- wlr_output_update_custom_mode(&conn->output,
- pending.base->custom_mode.width,
- pending.base->custom_mode.height,
- pending.base->custom_mode.refresh);
- break;
- }
- }
if (flags & DRM_MODE_PAGE_FLIP_EVENT) {
conn->pending_page_flip_crtc = conn->crtc->id;