summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-26 21:46:47 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-26 21:46:47 +0000
commit2eb0f07523133ff5a3f6d4b8e40f9513cd41b370 (patch)
treeefd3f5451edb0df853eef293e79c589ed025ece3
parentd5001270c5b423f76e37cb906ab0776c734bc26b (diff)
downloadmarex-dev-2eb0f07523133ff5a3f6d4b8e40f9513cd41b370.tar.gz
marex-dev-2eb0f07523133ff5a3f6d4b8e40f9513cd41b370.tar.bz2
Better handle case where different windows have different original opacitys and by better handle I mean I forgot to account for it before and I'm fixing it now
git-svn-id: file:///beryl/trunk@3228 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r--beryl-plugins/src/fadedesktop.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/beryl-plugins/src/fadedesktop.c b/beryl-plugins/src/fadedesktop.c
index 53e40a7..18d0a95 100644
--- a/beryl-plugins/src/fadedesktop.c
+++ b/beryl-plugins/src/fadedesktop.c
@@ -155,6 +155,9 @@ fadeDesktopPreparePaintScreen(CompScreen *s, int msSinceLastPaint)
FD_SCREEN(s);
#define SPEED ((fs->opt[FD_SCREEN_OPTION_SPEED].value.i ? fs->opt[FD_SCREEN_OPTION_SPEED].value.i : 1))
+ int numWins=0;
+ int numReverts=0;
+
CompWindow *w;
for (w=s->windows; w; w=w->next)
{
@@ -181,14 +184,20 @@ fadeDesktopPreparePaintScreen(CompScreen *s, int msSinceLastPaint)
else
{
setWindowOpacity(w,w->opacity,PL_NO_LOCK);
- fs->reverting = FALSE;
+ numReverts++;
}
+
}
+ numWins++;
}
}
+ if (numWins == numReverts)
+ {
+ fs->reverting = FALSE;
+ }
UNWRAP(fs,s,preparePaintScreen);
(*s->preparePaintScreen) (s,msSinceLastPaint);