dwm-meillo

diff client.c @ 198:ac90e9e4b9c9

mouse grab needs also to grab for combinations of numlock/lockmask
author arg@10ksloc.org
date Sat, 05 Aug 2006 14:02:25 +0200
parents e848966a1ac6
children 955b4f217c2d
line diff
     1.1 --- a/client.c	Sat Aug 05 13:10:09 2006 +0200
     1.2 +++ b/client.c	Sat Aug 05 14:02:25 2006 +0200
     1.3 @@ -245,10 +245,30 @@
     1.4  
     1.5  	XGrabButton(dpy, Button1, MODKEY, c->win, False, BUTTONMASK,
     1.6  			GrabModeAsync, GrabModeSync, None, None);
     1.7 +	XGrabButton(dpy, Button1, MODKEY | LockMask, c->win, False, BUTTONMASK,
     1.8 +			GrabModeAsync, GrabModeSync, None, None);
     1.9 +	XGrabButton(dpy, Button1, MODKEY | NUMLOCKMASK, c->win, False, BUTTONMASK,
    1.10 +			GrabModeAsync, GrabModeSync, None, None);
    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 +			GrabModeAsync, GrabModeSync, None, None);
    1.20 +	XGrabButton(dpy, Button2, MODKEY | NUMLOCKMASK | LockMask, c->win, False, BUTTONMASK,
    1.21 +			GrabModeAsync, GrabModeSync, None, None);
    1.22 +
    1.23  	XGrabButton(dpy, Button3, MODKEY, c->win, False, BUTTONMASK,
    1.24  			GrabModeAsync, GrabModeSync, None, None);
    1.25 +	XGrabButton(dpy, Button3, MODKEY | LockMask, c->win, False, BUTTONMASK,
    1.26 +			GrabModeAsync, GrabModeSync, None, None);
    1.27 +	XGrabButton(dpy, Button3, MODKEY | NUMLOCKMASK, c->win, False, BUTTONMASK,
    1.28 +			GrabModeAsync, GrabModeSync, None, None);
    1.29 +	XGrabButton(dpy, Button3, MODKEY | NUMLOCKMASK | LockMask, c->win, False, BUTTONMASK,
    1.30 +			GrabModeAsync, GrabModeSync, None, None);
    1.31  
    1.32  	settags(c);
    1.33  	if(!c->isfloat)