diff options
author | Connor Lane Smith <cls@lubutu.com> | 2011-06-27 19:35:11 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2011-06-27 19:35:11 +0100 |
commit | 212f417e44f631d406d65156b0d244f60598b8cc (patch) | |
tree | 572edc1b823b81bdf8d5ca93aa9ad63d63233a13 | |
parent | 3a392b855882786d1aa9c842d1c36b5c1cbc576a (diff) | |
download | dwm-212f417e44f631d406d65156b0d244f60598b8cc.tar.gz dwm-212f417e44f631d406d65156b0d244f60598b8cc.tar.bz2 dwm-212f417e44f631d406d65156b0d244f60598b8cc.zip |
fix numlock (thanks mikhail)
-rw-r--r-- | dwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) |