summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-09 10:57:14 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-09 10:57:14 +0200
commitedceebe6b0c02faee365a4049acdb9de8f48c6bb (patch)
treed718b6400bb29fee5b1e0e8ecda3d35dca04a100
parentb7bcf31160405ea3e838e827526b69bd78f45bec (diff)
downloadberyl-premerge-edceebe6b0c02faee365a4049acdb9de8f48c6bb.tar.gz
beryl-premerge-edceebe6b0c02faee365a4049acdb9de8f48c6bb.tar.bz2
Properly apply opacity when in showdesktop mode.
-rw-r--r--src/showdesktop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/showdesktop.c b/src/showdesktop.c
index 499e9c7..d1db7d9 100644
--- a/src/showdesktop.c
+++ b/src/showdesktop.c
@@ -511,9 +511,8 @@ static Bool showdesktopPaintWindow(CompWindow *w,
else if (ss->state == SD_STATE_ON)
{
WindowPaintAttrib wAttrib = *attrib;
- SD_WINDOW(w);
- if (sw->adjust)
+ if (w->inShowDesktopMode)
wAttrib.opacity = wAttrib.opacity * showdesktopGetWindowOpacity(w->screen);
UNWRAP(ss, w->screen, paintWindow);