path: root/src/privatewindow.h
diff options
authorSam Spilsbury <>2011-01-12 05:01:52 +0800
committerSam Spilsbury <>2011-01-12 05:01:52 +0800
commitecc61dc04567947e92cbb9686c1041619abc05b1 (patch)
tree96f3eb7c35d82eec77f9c488aee29c7f8f6808a1 /src/privatewindow.h
parentcf2117be87040f5f19be6b688d481f7369b0f7b5 (diff)
Don't stack mapping windows which requested no focus above the active window.
This adds a managing variable to PrivateWindow which represents the managing state of the window. In addition, ::updateAttributes did not stack windows below correctly if they were already directly on top of an active window (since it is not valid to stack a window below itself, and the algorithm would pass the below to the findValidStackSiblingBelow function as well as a pointer to the active window (== below)). The function now compares the below sibling to the window we want to be stacked.
Diffstat (limited to 'src/privatewindow.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/privatewindow.h b/src/privatewindow.h
index 09a31e1..99d0c4e 100644
--- a/src/privatewindow.h
+++ b/src/privatewindow.h
@@ -243,6 +243,7 @@ class PrivateWindow {
bool destroyed;
bool managed;
bool unmanaging;
+ bool managing;
int destroyRefCnt;
int unmapRefCnt;