diff options
author | Simon Ser <contact@emersion.fr> | 2022-11-12 00:37:08 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-11-17 09:17:32 +0000 |
commit | 4452ed06513c2ad11a82131a99dbe35b505eb0cf (patch) | |
tree | 91453d6d332866e5f2d76b16691544b14061f14b /backend/drm | |
parent | ef5e2cc5e3db6243c5201734e8086a56182089b9 (diff) |
backend/drm: don't damage output on CRTC change
There's no reason why the output should be damaged here. The current
buffer doesn't need to be re-painted.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 2a89e6f9..a460fad5 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1099,12 +1099,6 @@ static void realloc_crtcs(struct wlr_drm_backend *drm, } conn->crtc = &drm->crtcs[connector_match[i]]; - - // Only realloc buffers if we have actually been modeset - if (conn->status != DRM_MODE_CONNECTED || !conn->output.enabled) { - continue; - } - wlr_output_damage_whole(&conn->output); } } |