summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-07-05 15:17:55 +0200
committerDanny Baumann <dannybaumann@web.de>2007-07-05 15:17:55 +0200
commit648f2af9dbabc91b8d4806a59a1cf77ed7a7ad50 (patch)
tree04bd8c4ff7a7e09498a080d5574dcc96f8e50a73
parent9f3b192aeb24021dd8bb221d7bb2368cfd14160c (diff)
downloadshowdesktop-648f2af9dbabc91b8d4806a59a1cf77ed7a7ad50.tar.gz
showdesktop-648f2af9dbabc91b8d4806a59a1cf77ed7a7ad50.tar.bz2
Set showdesktop'ed windows to unmanaged so they aren't handled by updateWindowAttributes and friends.
-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)