wlr_scene: Clear damage ring on transform change

This commit is contained in:
Alexander Orzechowski 2023-06-13 23:08:52 -04:00 committed by Simon Ser
parent 61667404ce
commit 58a2f8bd5c

View file

@ -1586,6 +1586,10 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
&render_data.trans_width, &render_data.trans_height); &render_data.trans_width, &render_data.trans_height);
if (state->committed & WLR_OUTPUT_STATE_TRANSFORM) { 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; render_data.transform = state->transform;
} }