aewl

diff client.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 ff501d94de62
children 71f02d14dce1
line diff
     1.1 --- a/client.c	Mon Aug 14 18:47:13 2006 +0200
     1.2 +++ b/client.c	Mon Aug 14 19:18:02 2006 +0200
     1.3 @@ -228,27 +228,27 @@
     1.4  			GrabModeAsync, GrabModeSync, None, None);
     1.5  	XGrabButton(dpy, Button1, MODKEY | LockMask, c->win, False, BUTTONMASK,
     1.6  			GrabModeAsync, GrabModeSync, None, None);
     1.7 -	XGrabButton(dpy, Button1, MODKEY | NUMLOCKMASK, c->win, False, BUTTONMASK,
     1.8 +	XGrabButton(dpy, Button1, MODKEY | numlockmask, c->win, False, BUTTONMASK,
     1.9  			GrabModeAsync, GrabModeSync, None, None);
    1.10 -	XGrabButton(dpy, Button1, MODKEY | NUMLOCKMASK | LockMask, c->win, False, BUTTONMASK,
    1.11 +	XGrabButton(dpy, Button1, MODKEY | numlockmask | LockMask, c->win, False, BUTTONMASK,
    1.12  			GrabModeAsync, GrabModeSync, None, None);
    1.13  
    1.14  	XGrabButton(dpy, Button2, MODKEY, c->win, False, BUTTONMASK,
    1.15  			GrabModeAsync, GrabModeSync, None, None);
    1.16  	XGrabButton(dpy, Button2, MODKEY | LockMask, c->win, False, BUTTONMASK,
    1.17  			GrabModeAsync, GrabModeSync, None, None);
    1.18 -	XGrabButton(dpy, Button2, MODKEY | NUMLOCKMASK, c->win, False, BUTTONMASK,
    1.19 +	XGrabButton(dpy, Button2, MODKEY | numlockmask, c->win, False, BUTTONMASK,
    1.20  			GrabModeAsync, GrabModeSync, None, None);
    1.21 -	XGrabButton(dpy, Button2, MODKEY | NUMLOCKMASK | LockMask, c->win, False, BUTTONMASK,
    1.22 +	XGrabButton(dpy, Button2, MODKEY | numlockmask | LockMask, c->win, False, BUTTONMASK,
    1.23  			GrabModeAsync, GrabModeSync, None, None);
    1.24  
    1.25  	XGrabButton(dpy, Button3, MODKEY, c->win, False, BUTTONMASK,
    1.26  			GrabModeAsync, GrabModeSync, None, None);
    1.27  	XGrabButton(dpy, Button3, MODKEY | LockMask, c->win, False, BUTTONMASK,
    1.28  			GrabModeAsync, GrabModeSync, None, None);
    1.29 -	XGrabButton(dpy, Button3, MODKEY | NUMLOCKMASK, c->win, False, BUTTONMASK,
    1.30 +	XGrabButton(dpy, Button3, MODKEY | numlockmask, c->win, False, BUTTONMASK,
    1.31  			GrabModeAsync, GrabModeSync, None, None);
    1.32 -	XGrabButton(dpy, Button3, MODKEY | NUMLOCKMASK | LockMask, c->win, False, BUTTONMASK,
    1.33 +	XGrabButton(dpy, Button3, MODKEY | numlockmask | LockMask, c->win, False, BUTTONMASK,
    1.34  			GrabModeAsync, GrabModeSync, None, None);
    1.35  
    1.36  	settags(c);