[hackers] [dwm] fix numlock (thanks mikhail) || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Mon, 27 Jun 2011 20:36:14 +0200 (CEST)

changeset: 1555:6bcee1cd67d2
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Mon Jun 27 19:35:11 2011 +0100
files: dwm.c
description:
fix numlock (thanks mikhail)

diff -r 014df3c34b64 -r 6bcee1cd67d2 dwm.c
--- a/dwm.c Sat Jun 25 09:07:28 2011 +0100
+++ b/dwm.c Mon Jun 27 19:35:11 2011 +0100
@@ -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])
Received on Mon Jun 27 2011 - 20:36:14 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 27 2011 - 20:48:05 CEST