summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorgarbeam@gmail.com <unknown>2011-06-24 21:02:32 +0100
committergarbeam@gmail.com <unknown>2011-06-24 21:02:32 +0100
commit92fe06b501a5458a6aecdcc53f8d35c2a1f55c1c (patch)
treef5a8a9f28c8a0ec2bec2704f582a2e490bc3174f /dwm.c
parent6cf29bff33003a8ab00530115af14f8c270fa0da (diff)
applied Andreas Amann's patch from Oct 2010, thanks
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index eba48ed..84c0ae6 100644
--- a/dwm.c
+++ b/dwm.c
@@ -42,7 +42,7 @@
/* macros */
#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
-#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask))
+#define CLEANMASK(mask) (mask & (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])