From: Connor Lane Smith Date: Mon, 27 Jun 2011 18:35:11 +0000 (+0100) Subject: fix numlock (thanks mikhail) X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=212f417e44f631d406d65156b0d244f60598b8cc;p=dwm.git fix numlock (thanks mikhail) --- diff --git a/dwm.c b/dwm.c index 8c1adeb..bb017f5 100644 --- a/dwm.c +++ b/dwm.c @@ -42,7 +42,7 @@ /* macros */ #define BUTTONMASK (ButtonPressMask|ButtonReleaseMask) -#define CLEANMASK(mask) (mask & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)) +#define CLEANMASK(mask) (mask & ~numlockmask & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)) #define INRECT(X,Y,RX,RY,RW,RH) ((X) >= (RX) && (X) < (RX) + (RW) && (Y) >= (RY) && (Y) < (RY) + (RH)) #define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags])) #define LENGTH(X) (sizeof X / sizeof X[0])