]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/stacking.h
Imported Upstream version 20090110
[ion3.git] / ioncore / stacking.h
index 2810bdaa40617ba307091a782e93aa1f3728d5ec..c1754ae793ba32b79743d5428c27429c0e1d1ea9 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/ioncore/stacking.h
  *
- * Copyright (c) Tuomo Valkonen 1999-2007.
+ * Copyright (c) Tuomo Valkonen 1999-2009.
  *
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
  */
 
 #ifndef ION_IONCORE_STACKING_H
@@ -22,8 +19,8 @@
 #define STACKING_LEVEL_ON_TOP 2
 #define STACKING_LEVEL_MODAL1 1024
 
-
 #define STACKING_IS_HIDDEN(ST) ((ST)->hidden)
+#define STACKING_IS_PSEUDOMODAL(ST) ((ST)->pseudomodal)
 
 
 DECLSTRUCT(WStacking){
@@ -37,6 +34,7 @@ DECLSTRUCT(WStacking){
     /* flags */
     uint to_unweave:2;
     uint hidden:1;
+    uint pseudomodal:1;
     
     /* WMPlex stuff */
     WLListNode *lnode;
@@ -100,6 +98,7 @@ uint stacking_min_level(WStacking *stacking,
 
 uint stacking_min_level_mapped(WStacking *stacking);
 
+bool stacking_must_focus(WStacking *stacking, WStacking *st);
 
 WStacking *ioncore_find_stacking(WRegion *reg);
 void stacking_unassoc(WStacking *stacking);