Mercurial > dwm-meillo
annotate wm.h @ 7:49e2fc9fb94f
new stuff
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 11:27:56 +0200 |
parents | e0cefb3981c8 |
children | 7066ff2fe8bc |
rev | line source |
---|---|
0 | 1 /* |
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> | |
3 * See LICENSE file for license details. | |
4 */ | |
5 | |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
6 #include "config.h" |
2 | 7 #include "draw.h" |
8 #include "util.h" | |
9 | |
0 | 10 #include <X11/Xutil.h> |
11 | |
5 | 12 /* atoms */ |
0 | 13 enum { WMState, WMProtocols, WMDelete, WMLast }; |
14 enum { NetSupported, NetWMName, NetLast }; | |
15 | |
5 | 16 /* cursor */ |
0 | 17 enum { CurNormal, CurResize, CurMove, CurInput, CurLast }; |
18 | |
5 | 19 /* rects */ |
0 | 20 enum { RFloat, RGrid, RLast }; |
21 | |
22 typedef struct Client Client; | |
23 | |
24 struct Client { | |
25 char name[256]; | |
7 | 26 char tag[256]; |
0 | 27 int proto; |
5 | 28 unsigned int border; |
29 Bool fixedsize; | |
0 | 30 Window win; |
31 Window trans; | |
32 Window title; | |
33 XSizeHints size; | |
34 XRectangle r[RLast]; | |
35 Client *next; | |
5 | 36 Client *snext; |
0 | 37 }; |
38 | |
39 extern Display *dpy; | |
5 | 40 extern Window root, barwin; |
41 extern Atom wm_atom[WMLast], net_atom[NetLast]; | |
0 | 42 extern Cursor cursor[CurLast]; |
5 | 43 extern XRectangle rect, barrect; |
44 extern Bool running; | |
7 | 45 extern Bool grid; |
5 | 46 extern void (*handler[LASTEvent]) (XEvent *); |
0 | 47 |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
48 extern int screen, sel_screen; |
5 | 49 extern unsigned int lock_mask, numlock_mask; |
7 | 50 extern char *bartext, tag[256]; |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
51 |
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
52 extern Brush brush; |
7 | 53 extern Client *client; |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
54 |
5 | 55 /* bar.c */ |
56 extern void draw_bar(); | |
57 | |
58 /* client.c */ | |
59 extern Client *create_client(Window w, XWindowAttributes *wa); | |
60 extern void manage(Client *c); | |
61 | |
0 | 62 /* wm.c */ |
5 | 63 extern int win_proto(Window w); |