dwm-meillo
diff wm.h @ 8:7066ff2fe8bc
added key handling
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 11:50:18 +0200 |
parents | 49e2fc9fb94f |
children | d567f430a81d |
line diff
1.1 --- a/wm.h Tue Jul 11 11:27:56 2006 +0200 1.2 +++ b/wm.h Tue Jul 11 11:50:18 2006 +0200 1.3 @@ -20,6 +20,7 @@ 1.4 enum { RFloat, RGrid, RLast }; 1.5 1.6 typedef struct Client Client; 1.7 +typedef struct Key Key; 1.8 1.9 struct Client { 1.10 char name[256]; 1.11 @@ -36,6 +37,13 @@ 1.12 Client *snext; 1.13 }; 1.14 1.15 +struct Key { 1.16 + unsigned long mod; 1.17 + KeySym keysym; 1.18 + void (*func)(char *arg); 1.19 + char *arg; 1.20 +}; 1.21 + 1.22 extern Display *dpy; 1.23 extern Window root, barwin; 1.24 extern Atom wm_atom[WMLast], net_atom[NetLast]; 1.25 @@ -46,7 +54,6 @@ 1.26 extern void (*handler[LASTEvent]) (XEvent *); 1.27 1.28 extern int screen, sel_screen; 1.29 -extern unsigned int lock_mask, numlock_mask; 1.30 extern char *bartext, tag[256]; 1.31 1.32 extern Brush brush; 1.33 @@ -55,9 +62,15 @@ 1.34 /* bar.c */ 1.35 extern void draw_bar(); 1.36 1.37 +/* cmd.c */ 1.38 +extern void run(char *arg); 1.39 + 1.40 /* client.c */ 1.41 extern Client *create_client(Window w, XWindowAttributes *wa); 1.42 extern void manage(Client *c); 1.43 1.44 +/* key.c */ 1.45 +extern void update_keys(); 1.46 + 1.47 /* wm.c */ 1.48 extern int win_proto(Window w);