Re: [PATCH] window: Use constant keycode offset of 8

2012-02-16 Thread Tiago Vignatti
On 02/16/2012 02:48 PM, Daniel Stone wrote: The X11 compositor currently posts its key presses as keycode - 8; this is due to X11 having a historical minimum keycode of 8, whereas evdev is numbered starting from 1. So while the KEY_* constants begin with KEY_ESC at 1, the corresponding keycode i

[PATCH] window: Use constant keycode offset of 8

2012-02-16 Thread Daniel Stone
The X11 compositor currently posts its key presses as keycode - 8; this is due to X11 having a historical minimum keycode of 8, whereas evdev is numbered starting from 1. So while the KEY_* constants begin with KEY_ESC at 1, the corresponding keycode in both X11 and the XKB keymaps is 9. window,