From ca5d18aa2637bcccac98b6d75bd4947c0021f19b Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Tue, 11 Feb 2025 22:39:43 +0300 Subject: [PATCH] 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. --- src/picom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/picom.c b/src/picom.c index a6ce8672..1b0595d1 100644 --- a/src/picom.c +++ b/src/picom.c @@ -715,6 +715,7 @@ static bool paint_preprocess(session_t *ps, bool *animation, struct win **out_bo HASH_FIND_STR(ps->shaders, window_options.shader, fg_shader); } if (fg_shader != NULL && fg_shader->attributes & SHADER_ATTRIBUTE_ANIMATED) { + pixman_region32_copy(&w->damaged, &w->bounding_shape); *animation = true; }