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.
This commit is contained in:
Simon Ser 2022-11-12 00:37:08 +01:00
parent ef5e2cc5e3
commit 4452ed0651
1 changed files with 0 additions and 6 deletions

View File

@ -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);
}
}