foo-wm

(Archived) Experimental Zooming IPC-based WM
git clone http://milesalan.com/git/foo-wm
Log | Files | Refs | Mirror | README | LICENSE

foo-wm.h (786B)


      1 #include <X11/Xlib.h>
      2 #include <sys/time.h>
      3 #include "structs.h"
      4 
      5 //X Server
      6 Display *display;
      7 int screen, activeScreen;
      8 int rootX, rootY, rootWidth, rootHeight;
      9 Window root; 
     10 
     11 /* focusedNode  :: Currently focused node (innard most of fcs ptrs rcvs input)
     12  * viewNode     :: Currently viewed node (screenspace) 
     13  * rootNode     :: Node at the top of the tree*/
     14 Node *focusedNode, *viewNode, *rootNode;
     15 
     16 /* X Window -> Node Lookup Table */
     17 Lookup * lookupTail;
     18 Mark   * markTail;
     19 
     20 //Customizations
     21 int clientPadding, containerPadding;
     22 int screenPaddingLeft, screenPaddingRight, screenPaddingTop, screenPaddingBottom;
     23 int defaultLayout, border;
     24 long activeFocusedColor, activeUnfocusedColor, 
     25      inactiveFocusedColor, inactiveUnfocusedColor;
     26 
     27 void setup(void);
     28 void handleEvents(void);