2008/8/10 Szabolcs Nagy <[EMAIL PROTECTED]>:
> On 8/4/08, Johannes Hofmann <[EMAIL PROTECTED]> wrote:
>> attached are two minor cleanups. The first simplifies grabkeys()
>> similar to grabbuttons().
>
> i've just realized that there is a problem with the patch: numlockmask
> is modified but modifiers isn't
>
> void
> grabkeys(void) {
> unsigned int i, j;
> unsigned int modifiers[] = { 0, LockMask, numlockmask,
> numlockmask|LockMask };
Hmm, why is this a problem since modifiers is not static and
reinitialized freshly in each grabkeys() call?
Kind regards,
--Anselm