Mercurial > aewl
annotate wm.h @ 6:e0cefb3981c8
implemented pipe_spawn
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 11:10:05 +0200 |
parents | e5018cae273f |
children | 49e2fc9fb94f |
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 typedef struct Tag Tag; | |
24 | |
25 struct Client { | |
26 Tag *tag; | |
27 char name[256]; | |
28 int proto; | |
5 | 29 unsigned int border; |
30 Bool fixedsize; | |
0 | 31 Window win; |
32 Window trans; | |
33 Window title; | |
34 XSizeHints size; | |
35 XRectangle r[RLast]; | |
36 Client *next; | |
5 | 37 Client *snext; |
0 | 38 }; |
39 | |
40 struct Tag { | |
41 char name[256]; | |
5 | 42 Client *stack; |
0 | 43 XRectangle r; |
5 | 44 Tag *next; |
45 Tag *cnext; | |
0 | 46 }; |
47 | |
48 extern Display *dpy; | |
5 | 49 extern Window root, barwin; |
50 extern Atom wm_atom[WMLast], net_atom[NetLast]; | |
0 | 51 extern Cursor cursor[CurLast]; |
5 | 52 extern XRectangle rect, barrect; |
53 extern Bool running; | |
54 extern void (*handler[LASTEvent]) (XEvent *); | |
0 | 55 |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
56 extern int screen, sel_screen; |
5 | 57 extern unsigned int lock_mask, numlock_mask; |
6 | 58 extern char *bartext; |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
59 |
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
60 extern Brush brush; |
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
61 |
5 | 62 /* bar.c */ |
63 extern void draw_bar(); | |
64 | |
65 /* client.c */ | |
66 extern Client *create_client(Window w, XWindowAttributes *wa); | |
67 extern void manage(Client *c); | |
68 | |
0 | 69 /* wm.c */ |
5 | 70 extern int win_proto(Window w); |