From 0256de00029e8f17da0514e14460fb9ff2283433 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 17 Dec 2017 18:02:55 +0100 Subject: Add full refresh rate support to custom modes --- backend/drm/drm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backend/drm/drm.c') 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 -- cgit v1.2.3