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.
Simon Ser 2 years ago
parent ef5e2cc5e3
commit 4452ed0651

@ -1099,12 +1099,6 @@ static void realloc_crtcs(struct wlr_drm_backend *drm,
} }
conn->crtc = &drm->crtcs[connector_match[i]]; 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);
} }
} }

Loading…
Cancel
Save