76 typedef struct { |
76 typedef struct { |
77 const char *symbol; |
77 const char *symbol; |
78 void (*arrange)(void); |
78 void (*arrange)(void); |
79 } Layout; |
79 } Layout; |
80 |
80 |
81 extern const char *tags[]; /* all tags */ |
81 extern const char *tags[]; /* all tags */ |
82 char stext[256]; /* status text */ |
82 extern char stext[256]; /* status text */ |
83 int screen, sx, sy, sw, sh; /* screen geometry */ |
83 extern int screen, sx, sy, sw, sh; /* screen geometry */ |
84 int wax, way, wah, waw; /* windowarea geometry */ |
84 extern int wax, way, wah, waw; /* windowarea geometry */ |
85 unsigned int bh, blw, bpos; /* bar height, bar layout label width, bar position */ |
85 extern unsigned int bh, blw, bpos; /* bar height, bar layout label width, bar position */ |
86 unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ |
86 extern unsigned int ntags, numlockmask; /* number of tags, numlock mask */ |
87 void (*handler[LASTEvent])(XEvent *); /* event handler */ |
87 extern void (*handler[LASTEvent])(XEvent *); /* event handler */ |
88 Atom wmatom[WMLast], netatom[NetLast]; |
88 extern Atom wmatom[WMLast], netatom[NetLast]; |
89 Bool selscreen, *seltag; /* seltag is array of Bool */ |
89 extern Bool selscreen, *seltag; /* seltag is array of Bool */ |
90 Client *clients, *sel, *stack; /* global client list and stack */ |
90 extern Client *clients, *sel, *stack; /* global client list and stack */ |
91 Cursor cursor[CurLast]; |
91 extern Cursor cursor[CurLast]; |
92 DC dc; /* global draw context */ |
92 extern DC dc; /* global draw context */ |
93 Display *dpy; |
93 extern Display *dpy; |
94 Layout *lt; |
94 extern Layout *lt; |
95 Window root, barwin; |
95 extern Window root, barwin; |
96 |
96 |
97 /* client.c */ |
97 /* client.c */ |
98 void attach(Client *c); /* attaches c to global client list */ |
98 void attach(Client *c); /* attaches c to global client list */ |
99 void configure(Client *c); /* send synthetic configure event */ |
99 void configure(Client *c); /* send synthetic configure event */ |
100 void detach(Client *c); /* detaches c from global client list */ |
100 void detach(Client *c); /* detaches c from global client list */ |