1
0
Fork 0
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:
Maxim Solovyov 2025-02-11 22:39:43 +03:00 committed by Yuxuan Shui
parent a456d438d0
commit cad2ea0950
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -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;
}