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
..
.gitignore clickdot: a copy of resizor 2012-01-27 10:44:22 +02:00
Makefile.am clickdot: a copy of resizor 2012-01-27 10:44:22 +02:00
cairo-util.c clients: fix spelling 2012-02-13 11:52:24 +02:00
cairo-util.h cairo-util: Add png loader and image type sniffing 2012-01-25 16:30:48 -05:00
clickdot.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
desktop-shell.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
dnd.c clients/dnd: adapt to new data_device icon protocol 2012-02-16 23:19:40 -05:00
eventdemo.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
flower.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
gears.c clients: fix spelling 2012-02-13 11:52:24 +02:00
glmatrix.c wscreensaver: configure glmatrix 2011-11-18 14:48:39 +02:00
image.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
matrix3.xpm clients: import glmatrix.c and matrix3.xpm 2011-11-18 14:45:04 +02:00
resizor.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
screenshot.c Use new format codes 2012-01-11 14:24:46 -05:00
simple-egl.c Use new format codes 2012-01-11 14:24:46 -05:00
simple-shm.c Use new format codes 2012-01-11 14:24:46 -05:00
simple-touch.c protocol: remove absolute coordinates from pointer 2012-02-16 23:19:40 -05:00
smoke.c smoke: Use normal window resize mechanism 2012-02-08 14:47:53 -05:00
tablet-shell.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
terminal.c terminal: run $SHELL if set 2012-02-07 16:26:11 -05:00
view.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
window.c window: Use constant keycode offset of 8 2012-02-16 23:19:41 -05:00
window.h window: Use new xkbcommon include path 2012-02-16 23:19:40 -05:00
wscreensaver-glue.c clients: add wscreensaver 2011-11-18 14:46:26 +02:00
wscreensaver-glue.h Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
wscreensaver.c window: Dont take width and height in window constructor 2012-01-31 15:24:48 -05:00
wscreensaver.h wscreensaver: Use a widget and a redraw handler 2012-01-10 14:22:22 -05:00