mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-27 03:49:49 +01:00
wlr_scene: Clear damage ring on transform change
This commit is contained in:
parent
61667404ce
commit
58a2f8bd5c
1 changed files with 4 additions and 0 deletions
|
@ -1586,6 +1586,10 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
|
|||
&render_data.trans_width, &render_data.trans_height);
|
||||
|
||||
if (state->committed & WLR_OUTPUT_STATE_TRANSFORM) {
|
||||
if (render_data.transform != state->transform) {
|
||||
wlr_damage_ring_add_whole(&scene_output->damage_ring);
|
||||
}
|
||||
|
||||
render_data.transform = state->transform;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue