summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Young <rcxdude@gmail.com>2008-09-17 21:34:46 +0100
committerDouglas Young <rcxdude@gmail.com>2008-09-17 21:34:46 +0100
commit81852654cefb1ec286d8b3b17346d39d143f9e05 (patch)
treefab84043e72269a784155c9355fb92e4727bd203
parent9e1d4e2f9d0c0dc25b6a1f5748d02e3e61c53e37 (diff)
downloaddodge-81852654cefb1ec286d8b3b17346d39d143f9e05.tar.gz
dodge-81852654cefb1ec286d8b3b17346d39d143f9e05.tar.bz2
prevent excess damage by damaging only the windows that need to be animated
-rw-r--r--dodge.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dodge.c b/dodge.c
index 7470389..b5bce5e 100644
--- a/dodge.c
+++ b/dodge.c
@@ -325,7 +325,13 @@ dodgeDonePaintScreen (CompScreen *s)
DODGE_SCREEN(s);
if (ds->active && ds->moreAdjust)
{
- damageScreen(s);
+ CompWindow *w;
+ for (w = s->windows; w; w = w->next)
+ {
+ DODGE_WINDOW(w);
+ if (dw->isdodge)
+ addWindowDamage(w);
+ }
}
UNWRAP (ds, s, donePaintScreen);
(*s->donePaintScreen) (s);