mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
wlr_scene: Clear damage ring on scale change
If we were trying to change the scale in wlr_scene_output_build_state, we would be using incorrect damage
This commit is contained in:
parent
96b95bf775
commit
61667404ce
1 changed files with 4 additions and 0 deletions
|
@ -1590,6 +1590,10 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
|
|||
}
|
||||
|
||||
if (state->committed & WLR_OUTPUT_STATE_SCALE) {
|
||||
if (render_data.scale != state->scale) {
|
||||
wlr_damage_ring_add_whole(&scene_output->damage_ring);
|
||||
}
|
||||
|
||||
render_data.scale = state->scale;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue