summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-10-24 09:34:46 +0200
committerDanny Baumann <dannybaumann@web.de>2008-10-24 09:34:46 +0200
commit869e3929fd2f0cfdfeb7e9df0c1bb1eb9702618c (patch)
tree7286cb5c7d2f82c793adcb0d7ab8830f94acc2a3
parent94b2e375d3b8692dc46468ba95489f6ee1ebbbf2 (diff)
downloadshowdesktop-869e3929fd2f0cfdfeb7e9df0c1bb1eb9702618c.tar.gz
showdesktop-869e3929fd2f0cfdfeb7e9df0c1bb1eb9702618c.tar.bz2
Also fix setting window state.
-rw-r--r--showdesktop.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/showdesktop.c b/showdesktop.c
index edb03da..596a5b2 100644
--- a/showdesktop.c
+++ b/showdesktop.c
@@ -171,13 +171,15 @@ setSDWindowHints (CompWindow *w,
if (enterSDMode)
{
- sw->wasManaged = w->managed;
- w->managed = FALSE;
-
sw->stateMask = state & CompWindowStateSkipPagerMask;
state |= CompWindowStateSkipPagerMask;
sw->notAllowedMask = CompWindowActionMoveMask |
CompWindowActionResizeMask;
+
+ changeWindowState (w, state);
+
+ sw->wasManaged = w->managed;
+ w->managed = FALSE;
}
else
{
@@ -187,9 +189,9 @@ setSDWindowHints (CompWindow *w,
state |= (sw->stateMask & CompWindowStateSkipPagerMask);
sw->notAllowedMask = 0;
sw->stateMask = 0;
- }
- changeWindowState (w, state);
+ changeWindowState (w, state);
+ }
}
static void