Files
weston/clients
Daniel Stone 0d5a509ae5 window: Use constant keycode offset of 8
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, on the other hand, was relying on xkb->min_key_code being 8 to
translate its keycodes back to useful values in the XKB 'evdev' keycode
map.  min_key_code may not always be 8, for restricted subsets of the
keycode map.

Perhaps not the best solution, but at least consistent.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-02-16 23:19:41 -05:00
..
2012-01-27 10:44:22 +02:00
2012-02-13 11:52:24 +02:00
2012-02-13 11:52:24 +02:00
2011-11-18 14:48:39 +02:00
2012-01-27 10:44:22 +02:00
2012-01-11 14:24:46 -05:00
2012-01-11 14:24:46 -05:00
2012-01-11 14:24:46 -05:00
2012-02-07 16:26:11 -05:00
2011-11-18 14:46:26 +02:00