mirror of
https://github.com/yshui/picom.git
synced 2025-04-07 17:44:04 -04:00
picom: add damage to windows that have animated shaders
done in paint_preprocess because doing this in command_blit_damage or
layer_from_win would be complicated.
Changelog: BugFix: Fix animated shaders.
(cherry picked from commit ca5d18aa26
)
This commit is contained in:
parent
a456d438d0
commit
cad2ea0950
1 changed files with 1 additions and 0 deletions
|
@ -806,6 +806,7 @@ static bool paint_preprocess(session_t *ps, bool *animation, struct win **out_bo
|
|||
}
|
||||
if (fg_shader != NULL && fg_shader->attributes & SHADER_ATTRIBUTE_ANIMATED) {
|
||||
add_damage_from_win(ps, w);
|
||||
pixman_region32_copy(&w->damaged, &w->bounding_shape);
|
||||
*animation = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue