]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/global.h
Imported Upstream version 20090110
[ion3.git] / ioncore / global.h
index 37569104b812575552ccab5799951413a944f044..fb00d99e93278221409a32ca77b84f62944d6534 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/ioncore/global.h
  *
- * Copyright (c) Tuomo Valkonen 1999-2006
+ * 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_GLOBAL_H
@@ -17,6 +14,8 @@
 #include <X11/Xutil.h>
 #include <X11/Xresource.h>
 
+#include <libtu/stringstore.h>
+
 #include "rootwin.h"
 #include "screen.h"
 #include "window.h"
@@ -35,8 +34,17 @@ enum{
     IONCORE_OPMODE_DEINIT
 };
 
+enum{
+    IONCORE_FOCUSNEXT_OTHER,
+    IONCORE_FOCUSNEXT_POINTERHACK,
+    IONCORE_FOCUSNEXT_ENTERWINDOW,
+    IONCORE_FOCUSNEXT_FALLBACK
+};
+
+
 INTRSTRUCT(WGlobal);
 
+
 DECLSTRUCT(WGlobal){
     int argc;
     char **argv;
@@ -56,11 +64,13 @@ DECLSTRUCT(WGlobal){
     Atom atom_checkcode;
     Atom atom_selection;
     Atom atom_mwm_hints;
-
+    Atom atom_dockapp_hack;
+    
     WRootWin *rootwins;
     WScreen *screens;
     WRegion *focus_next;
     bool warp_next;
+    int focus_next_source;
     
     /* We could have a display WRegion but the screen-link could impose
      * some problems so these are handled as a special case.
@@ -77,14 +87,33 @@ DECLSTRUCT(WGlobal){
     bool screen_notify;
     int frame_default_index;
     bool framed_transients;
-    
-    /*bool save_enabled;*/
+    bool no_mousefocus;
+    bool unsqueeze_enabled;
+    bool autoraise;
     
     bool use_mb; /* use mb routines? */
     bool enc_sb; /* 8-bit charset? If unset, use_mb must be set. */
     bool enc_utf8; /* mb encoding is utf8? */
     
     const char *sm_client_id;
+    
+    struct{
+        StringId activated,
+                 inactivated,
+                 activity,
+                 sub_activity,
+                 name,
+                 unset_manager,
+                 set_manager,
+                 tag,
+                 set_return,
+                 unset_return,
+                 pseudoactivated,
+                 pseudoinactivated,
+                 deinit,
+                 map,
+                 unmap;
+    } notifies;
 };