Re: [dev] fix numlock bug

From: Nikolay G. Petrov <raba_AT_dir.bg>
Date: Sun, 15 Apr 2012 10:15:54 +0400

14.04.2012 19:20, Bjartur Thorlacius написал:
> On 4/13/12, Nikolay G. Petrov<raba_AT_dir.bg> wrote:
>> When my "numlock" is active, I can't switching under different workspace
>> or start the terminal,or by press on mouse button, nothings works! When
>> I switch off "numlock", all is ok.
>> Where in source code I can fix that?
>>
> Try stepping through updatenumlockmask() and checking the value of
> unsigned int numlockmask.
>
>
grep -i numlockmask dwm.c
> /*#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;
in this source I need to remove all about "numlockmask", or not?
Received on Sun Apr 15 2012 - 08:15:54 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 15 2012 - 08:24:03 CEST