aewl
diff wm.h @ 9:d567f430a81d
fixed several stuff (gridwm gets better and better)
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 12:52:57 +0200 |
parents | 7066ff2fe8bc |
children | 703255003abb |
line diff
1.1 --- a/wm.h Tue Jul 11 11:50:18 2006 +0200 1.2 +++ b/wm.h Tue Jul 11 12:52:57 2006 +0200 1.3 @@ -10,7 +10,6 @@ 1.4 #include <X11/Xutil.h> 1.5 1.6 /* atoms */ 1.7 -enum { WMState, WMProtocols, WMDelete, WMLast }; 1.8 enum { NetSupported, NetWMName, NetLast }; 1.9 1.10 /* cursor */ 1.11 @@ -25,7 +24,6 @@ 1.12 struct Client { 1.13 char name[256]; 1.14 char tag[256]; 1.15 - int proto; 1.16 unsigned int border; 1.17 Bool fixedsize; 1.18 Window win; 1.19 @@ -46,7 +44,7 @@ 1.20 1.21 extern Display *dpy; 1.22 extern Window root, barwin; 1.23 -extern Atom wm_atom[WMLast], net_atom[NetLast]; 1.24 +extern Atom net_atom[NetLast]; 1.25 extern Cursor cursor[CurLast]; 1.26 extern XRectangle rect, barrect; 1.27 extern Bool running; 1.28 @@ -57,20 +55,22 @@ 1.29 extern char *bartext, tag[256]; 1.30 1.31 extern Brush brush; 1.32 -extern Client *client; 1.33 +extern Client *clients; 1.34 1.35 /* bar.c */ 1.36 extern void draw_bar(); 1.37 1.38 /* cmd.c */ 1.39 extern void run(char *arg); 1.40 +extern void quit(char *arg); 1.41 1.42 /* client.c */ 1.43 extern Client *create_client(Window w, XWindowAttributes *wa); 1.44 extern void manage(Client *c); 1.45 +extern Client * getclient(Window w); 1.46 1.47 /* key.c */ 1.48 extern void update_keys(); 1.49 +extern void keypress(XEvent *e); 1.50 1.51 /* wm.c */ 1.52 -extern int win_proto(Window w);