Re: [dwm] bug in grabkeys()

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Sat, 23 Aug 2008 09:28:21 +0100

Hi Peter,

many thanks for this patch, applied.

Kind regards,
Anselm

2008/8/19 Peter Hartlich <sgkkr_AT_hartlich.com>:
> Changeset 1320:65c37b4be9cb introduces a bug in grabkeys() that causes
> MODKEY presses to be ignored if numlock is enabled on my system.
>
> The problem is that between initializing modifiers[] with numlockmask
> and using it later, numlockmask is changed without updating modifiers[].
>
> Maybe extract a function initmodmap(), to be called before grabkeys(),
> from the modmap initializiation block? Right now grabbuttons(), which
> uses numlockmask as well, subtly depends on grabkeys() having been
> called beforehand; this might make it a little more explicit what's
> going on.
>
> I've attached a patch that works for me, hopefully someone who knows
> more about that stuff can look over it.
>
> Regards,
> Peter
Received on Sat Aug 23 2008 - 08:28:21 UTC

This archive was generated by hypermail 2.2.0 : Sat Aug 23 2008 - 08:36:04 UTC