aboutsummaryrefslogtreecommitdiffstats
path: root/wm.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-11 11:50:18 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-11 11:50:18 +0200
commit366d81e313e6dd4e9e6c61ed8dfca4b4b40ccde6 (patch)
tree78ac7ac7de2fb2b4373dc5d6f67a70e2642ed347 /wm.h
parent8a8b7956b6de80decbfd3bff6d2ad6e5bb69b2bd (diff)
downloaddwm-366d81e313e6dd4e9e6c61ed8dfca4b4b40ccde6.tar.gz
added key handling
Diffstat (limited to 'wm.h')
-rw-r--r--wm.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/wm.h b/wm.h
index 01bbee4..454f7bf 100644
--- a/wm.h
+++ b/wm.h
@@ -20,6 +20,7 @@ enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
enum { RFloat, RGrid, RLast };
typedef struct Client Client;
+typedef struct Key Key;
struct Client {
char name[256];
@@ -36,6 +37,13 @@ struct Client {
Client *snext;
};
+struct Key {
+ unsigned long mod;
+ KeySym keysym;
+ void (*func)(char *arg);
+ char *arg;
+};
+
extern Display *dpy;
extern Window root, barwin;
extern Atom wm_atom[WMLast], net_atom[NetLast];
@@ -46,7 +54,6 @@ extern Bool grid;
extern void (*handler[LASTEvent]) (XEvent *);
extern int screen, sel_screen;
-extern unsigned int lock_mask, numlock_mask;
extern char *bartext, tag[256];
extern Brush brush;
@@ -55,9 +62,15 @@ extern Client *client;
/* bar.c */
extern void draw_bar();
+/* cmd.c */
+extern void run(char *arg);
+
/* client.c */
extern Client *create_client(Window w, XWindowAttributes *wa);
extern void manage(Client *c);
+/* key.c */
+extern void update_keys();
+
/* wm.c */
extern int win_proto(Window w);
remember that computers suck.