summaryrefslogtreecommitdiffstats
path: root/wm.h
diff options
context:
space:
mode:
Diffstat (limited to 'wm.h')
-rw-r--r--wm.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/wm.h b/wm.h
index c4d65ea..01bbee4 100644
--- a/wm.h
+++ b/wm.h
@@ -20,11 +20,10 @@ enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
20enum { RFloat, RGrid, RLast }; 20enum { RFloat, RGrid, RLast };
21 21
22typedef struct Client Client; 22typedef struct Client Client;
23typedef struct Tag Tag;
24 23
25struct Client { 24struct Client {
26 Tag *tag;
27 char name[256]; 25 char name[256];
26 char tag[256];
28 int proto; 27 int proto;
29 unsigned int border; 28 unsigned int border;
30 Bool fixedsize; 29 Bool fixedsize;
@@ -37,27 +36,21 @@ struct Client {
37 Client *snext; 36 Client *snext;
38}; 37};
39 38
40struct Tag {
41 char name[256];
42 Client *stack;
43 XRectangle r;
44 Tag *next;
45 Tag *cnext;
46};
47
48extern Display *dpy; 39extern Display *dpy;
49extern Window root, barwin; 40extern Window root, barwin;
50extern Atom wm_atom[WMLast], net_atom[NetLast]; 41extern Atom wm_atom[WMLast], net_atom[NetLast];
51extern Cursor cursor[CurLast]; 42extern Cursor cursor[CurLast];
52extern XRectangle rect, barrect; 43extern XRectangle rect, barrect;
53extern Bool running; 44extern Bool running;
45extern Bool grid;
54extern void (*handler[LASTEvent]) (XEvent *); 46extern void (*handler[LASTEvent]) (XEvent *);
55 47
56extern int screen, sel_screen; 48extern int screen, sel_screen;
57extern unsigned int lock_mask, numlock_mask; 49extern unsigned int lock_mask, numlock_mask;
58extern char *bartext; 50extern char *bartext, tag[256];
59 51
60extern Brush brush; 52extern Brush brush;
53extern Client *client;
61 54
62/* bar.c */ 55/* bar.c */
63extern void draw_bar(); 56extern void draw_bar();