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:
commit
fc8d174928
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue