aewl

diff event.c @ 291:8e6e0aa5e2ae

removed NUMLOCKMASK, added dynamically calculated numlockmask instead
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 19:18:02 +0200
parents b7865e6feef2
children 4aa632b6ba66
line diff
     1.1 --- a/event.c	Mon Aug 14 18:47:13 2006 +0200
     1.2 +++ b/event.c	Mon Aug 14 19:18:02 2006 +0200
     1.3 @@ -18,7 +18,7 @@
     1.4  
     1.5  KEYS
     1.6  
     1.7 -#define CLEANMASK(mask) (mask & ~(NUMLOCKMASK | LockMask))
     1.8 +#define CLEANMASK(mask) (mask & ~(numlockmask | LockMask))
     1.9  
    1.10  static void
    1.11  movemouse(Client *c)
    1.12 @@ -378,9 +378,9 @@
    1.13  				GrabModeAsync, GrabModeAsync);
    1.14  		XGrabKey(dpy, code, key[i].mod | LockMask, root, True,
    1.15  				GrabModeAsync, GrabModeAsync);
    1.16 -		XGrabKey(dpy, code, key[i].mod | NUMLOCKMASK, root, True,
    1.17 +		XGrabKey(dpy, code, key[i].mod | numlockmask, root, True,
    1.18  				GrabModeAsync, GrabModeAsync);
    1.19 -		XGrabKey(dpy, code, key[i].mod | NUMLOCKMASK | LockMask, root, True,
    1.20 +		XGrabKey(dpy, code, key[i].mod | numlockmask | LockMask, root, True,
    1.21  				GrabModeAsync, GrabModeAsync);
    1.22  	}
    1.23  }