From 4452ed06513c2ad11a82131a99dbe35b505eb0cf Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 12 Nov 2022 00:37:08 +0100 Subject: 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. --- backend/drm/drm.c | 6 ------ 1 file changed, 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); } } -- cgit v1.2.3