mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
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:
parent
ef5e2cc5e3
commit
4452ed0651
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user