mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-21 20:35:58 +01: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
1 changed files with 0 additions and 6 deletions
|
@ -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 a new issue