summaryrefslogtreecommitdiff
path: root/showdesktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'showdesktop.c')
-rw-r--r--showdesktop.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/showdesktop.c b/showdesktop.c
index 55d2968..17c91cf 100644
--- a/showdesktop.c
+++ b/showdesktop.c
@@ -103,6 +103,7 @@ typedef struct _ShowdesktopWindow
unsigned int notAllowedMask;
unsigned int stateMask;
+ Bool wasManaged;
float delta;
Bool adjust;
@@ -171,6 +172,14 @@ static void setSDWindowHints(CompWindow *w, Bool enterSDMode)
changeWindowState(w, state);
recalcWindowActions (w);
+
+ if (enterSDMode)
+ {
+ sw->wasManaged = w->managed;
+ w->managed = FALSE;
+ }
+ else
+ w->managed = sw->wasManaged;
}
static void repositionSDPlacer(CompWindow * w, int oldState)