1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-14 17:53:25 -04:00

Merge pull request #1407 from absolutelynothelix/fix-animated-shaders

picom: add damage to windows that have animated shaders
This commit is contained in:
Yuxuan Shui 2025-02-11 20:50:58 +00:00 committed by GitHub
commit fc8d174928
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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