[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] Bug: definekey top with nonexistent key

From: Shawn Betts
Subject: Re: [RP] Bug: definekey top with nonexistent key
Date: 10 Feb 2005 18:29:45 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Trent Buck <address@hidden> writes:

> Up spake Magnus Henoch:
> > I'm using the same ratpoisonrc on several systems, among them Sun
> > computers where the Pause key is known to X as F21.  Thus, I use the
> > following:
> > 
> > definekey top F21 echo foo
> > 
> > This works with the Suns.  But when I use that file on systems without
> > any F21 keys (all of them running XFree86), ratpoison doesn't let
> > keyboard events through to clients.  xev shows no output when I hammer
> > on the keyboard.  ratpoison itself is still responsive.
> > 
> > Is the answer simply "don't do that", or can this be fixed?
> The XKeysymToKeycode(3X) manpage observes that it returns 0 if the
> keysym can't be resolved.  There should therefore be a check in
> input.c:grab_key...
>    keysym_to_keycode_mod (keysym, &keycode, &mod);
> +  unless (*keycode)
> +    whinge();
>    PRINT_DEBUG (("keycode_mod: %ld %d %d\n", keysym, keycode, mod));

I fixed the key parser to check if the keysym maps to a keycode. If
not, raise an error.

Magnus, can you check if that fixes your problem?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]