Re: [dev] fix numlock bug
On 15 April 2012 08:15, Nikolay G. Petrov <raba_AT_dir.bg> wrote:
> 14.04.2012 19:20, Bjartur Thorlacius написал:
> Try stepping through updatenumlockmask() and checking the value of
> unsigned int numlockmask.
>
> grep -i numlockmask dwm.c
First of all, which dwm version are you referring to?
Second, this grepping isn't exactly what Bjartur was suggesting. The
only relevant place to look for numlockmask is the function
updatenumlockmask() -- in the inner loop all the modifier keycodes are
OR'ed in. Check if in your setup this leads to the weird side-effect
that others can't reproduce.
However, judging based on your grep, makes me think you are not using
dwm's tip, correct?
>
> /*#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask))*/
> #define CLEANMASK(mask) (mask &
> (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
>
> static void updatenumlockmask(void);
> static unsigned int numlockmask = 0;
> updatenumlockmask();
> unsigned int modifiers[] = { 0, LockMask, numlockmask,
> numlockmask|LockMask };
> updatenumlockmask();
> unsigned int modifiers[] = { 0, LockMask, numlockmask,
> numlockmask|LockMask };
> updatenumlockmask(void) {
> numlockmask = 0;
Cheers,
Anselm
Received on Sun Apr 15 2012 - 11:36:35 CEST
This archive was generated by hypermail 2.3.0
: Sun Apr 15 2012 - 11:48:04 CEST