changeset: 1556:ac3cba181282
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Mon Jun 27 20:12:42 2011 +0100
files: dwm.c
description:
fixed scroll lock (thanks bogdan)
diff -r 6bcee1cd67d2 -r ac3cba181282 dwm.c
--- a/dwm.c Mon Jun 27 19:35:11 2011 +0100
+++ b/dwm.c Mon Jun 27 20:12:42 2011 +0100
@@ -42,7 +42,7 @@
/* macros */
#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
-#define CLEANMASK(mask) (mask & ~numlockmask & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
+#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (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 - 21:12:50 CEST
This archive was generated by hypermail 2.2.0 : Mon Jun 27 2011 - 21:24:05 CEST