summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-11-23 13:35:36 +0100
committerDanny Baumann <dannybaumann@web.de>2007-11-23 13:35:36 +0100
commit65917229848f0f9567799f3b19625f8bd27e9877 (patch)
treea60ac56833b8923dddf6be3698a5068c7f1464c2
parent4913de4d8aa70f94642e4bb644d60e59ddf21631 (diff)
downloadextrawm-65917229848f0f9567799f3b19625f8bd27e9877.tar.gz
extrawm-65917229848f0f9567799f3b19625f8bd27e9877.tar.bz2
Only update stacking when going to fullscreen mode.
-rw-r--r--extrawm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/extrawm.c b/extrawm.c
index 5bf868f..027627f 100644
--- a/extrawm.c
+++ b/extrawm.c
@@ -68,7 +68,13 @@ fullscreenWindow (CompWindow *w,
changeWindowState (w, newState);
recalcWindowType (w);
recalcWindowActions (w);
- updateWindowAttributes (w, CompStackingUpdateModeNormal);
+
+ /* update stack position when going to fullscreen to
+ make the window cover panels etc. */
+ if (state & CompWindowStateFullscreenMask)
+ updateWindowAttributes (w, CompStackingUpdateModeNormal);
+ else
+ updateWindowAttributes (w, CompStackingUpdateModeNone);
}
static Bool