diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-13 07:56:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-13 07:56:08 -0500 |
commit | 96f09c749228f631e3a160de370e2894a4428e20 (patch) | |
tree | 35c6a0da0b6f296603711358a53847c6959acd67 /backend/drm/drm.c | |
parent | 808ab5aa1bd990776ae30d5f9bb171ca7b42d6ef (diff) | |
parent | 3b4b8953d96194e8b168149f46c731443239accd (diff) |
Merge pull request #483 from emersion/dynamic-output-scale-transform
Update output layout when scale or transform changes
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r-- | backend/drm/drm.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 9fcf2ad7..ba203791 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -453,11 +453,7 @@ static bool wlr_drm_connector_set_mode(struct wlr_output *output, conn->state = WLR_DRM_CONN_CONNECTED; conn->output.current_mode = mode; - if (conn->output.width != mode->width || conn->output.height != mode->height) { - conn->output.width = mode->width; - conn->output.height = mode->height; - wl_signal_emit(&conn->output.events.resolution, &conn->output); - } + wlr_output_update_size(&conn->output, mode->width, mode->height); // Since realloc_crtcs can deallocate planes on OTHER outputs, // we actually need to reinitalise any than has changed |