aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-17 18:02:55 +0100
committeremersion <contact@emersion.fr>2017-12-17 18:02:55 +0100
commit0256de00029e8f17da0514e14460fb9ff2283433 (patch)
treefed0f00d1888d0c6509b071668a03a372691f9f0 /backend/drm
parentb852fb9a2b3842dc6d122a2483c11322beb7a489 (diff)
Add full refresh rate support to custom modes
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 96b7d93d..1fceff95 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -452,8 +452,7 @@ static bool wlr_drm_connector_set_mode(struct wlr_output *output,
crtc->cursor ? crtc->cursor - drm->cursor_planes : -1);
conn->state = WLR_DRM_CONN_CONNECTED;
- conn->output.current_mode = mode;
- wlr_output_update_size(&conn->output, mode->width, mode->height);
+ wlr_output_update_mode(&conn->output, mode);
// Since realloc_crtcs can deallocate planes on OTHER outputs,
// we actually need to reinitalise any than has changed