[PATCH] force maximum keycode to be 255 in xf86-input-evdev evdev_key.c

Magnus Kessler Magnus.Kessler at gmx.net
Tue May 1 00:46:12 PDT 2007


On Tuesday 01 May 2007, Peter Hutterer wrote:
> Magnus Kessler wrote:
> > The last commit to xf86-input-evdev evdev_key.c was made to cover the
> > whole range of key codes up to 256 (0xff), but only introduced keycodes
> > up to 247 (0xf7). This patch adds the missing range up to 256.
>
> most apps can't cope with growing/shrinking keymaps. The size of the
> evdev keymap has to be exactly the size of the kbd keymap which happens
> to have 0x7f entries.
> Applying the patch will cause a lot of apps to fail on a BadValue in
> GetKeyboardMapping.
>
> Cheers,
>    Peter

Ah, thanks for the explanation. So it's just a misleading check-in comment. 
Easily done.

Regards,

Magnus



More information about the xorg mailing list