summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-05 09:58:36 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-05 09:58:36 +0200
commit62f4e7a9452b7cfcdc16dc13306e296b911db6e6 (patch)
tree79de2e0ebdf6550eb63d9b5851bf83d14b4837f2
parent4163fa024f7c0ef98608e927ec1d82d69a639a18 (diff)
downloadberyl-premerge-62f4e7a9452b7cfcdc16dc13306e296b911db6e6.tar.gz
beryl-premerge-62f4e7a9452b7cfcdc16dc13306e296b911db6e6.tar.bz2
showdesktop: only apply opacity change to showdesktop'd windows while in showdesktop mode
-rw-r--r--src/showdesktop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/showdesktop.c b/src/showdesktop.c
index 94740a7..499e9c7 100644
--- a/src/showdesktop.c
+++ b/src/showdesktop.c
@@ -511,8 +511,10 @@ static Bool showdesktopPaintWindow(CompWindow *w,
else if (ss->state == SD_STATE_ON)
{
WindowPaintAttrib wAttrib = *attrib;
+ SD_WINDOW(w);
- wAttrib.opacity = wAttrib.opacity * showdesktopGetWindowOpacity(w->screen);
+ if (sw->adjust)
+ wAttrib.opacity = wAttrib.opacity * showdesktopGetWindowOpacity(w->screen);
UNWRAP(ss, w->screen, paintWindow);
status = (*w->screen->paintWindow) (w, &wAttrib, transform, region, mask);