summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 19:18:02 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 19:18:02 +0200
commitee31e38dc75832a66cb0fc01bcf2f419ac96a20b (patch)
tree0a5103b2dfc4f7cd68038f198ecc3ccd46984385 /event.c
parent442334641e4124d8c32387287d431a83761ff916 (diff)
removed NUMLOCKMASK, added dynamically calculated numlockmask instead
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/event.c b/event.c
index 187c65e6..c8a87c12 100644
--- a/event.c
+++ b/event.c
@@ -18,7 +18,7 @@ typedef struct {
KEYS
-#define CLEANMASK(mask) (mask & ~(NUMLOCKMASK | LockMask))
+#define CLEANMASK(mask) (mask & ~(numlockmask | LockMask))
static void
movemouse(Client *c)
@@ -378,9 +378,9 @@ grabkeys()
GrabModeAsync, GrabModeAsync);
XGrabKey(dpy, code, key[i].mod | LockMask, root, True,
GrabModeAsync, GrabModeAsync);
- XGrabKey(dpy, code, key[i].mod | NUMLOCKMASK, root, True,
+ XGrabKey(dpy, code, key[i].mod | numlockmask, root, True,
GrabModeAsync, GrabModeAsync);
- XGrabKey(dpy, code, key[i].mod | NUMLOCKMASK | LockMask, root, True,
+ XGrabKey(dpy, code, key[i].mod | numlockmask | LockMask, root, True,
GrabModeAsync, GrabModeAsync);
}
}