diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-06-01 12:14:06 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-01 11:14:51 -0400 |
commit | b7452fe3138240ec78e3b4b670aec04f99d4b589 (patch) | |
tree | 2c8ceac31d67871334273d00e051155b871cdbd5 /tests/test-client.c | |
parent | e2ef43aa0e3e6ca078e10631877910aebafd0360 (diff) |
Add support for wl_keyboard::keymap events
These keymap events communicate the keymap from the compositor to the
clients via fd passing, rather than having the clients separately
compile a map.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'tests/test-client.c')
-rw-r--r-- | tests/test-client.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-client.c b/tests/test-client.c index 60ba051..4ec0f4a 100644 --- a/tests/test-client.c +++ b/tests/test-client.c @@ -112,6 +112,13 @@ pointer_handle_axis(void *data, struct wl_pointer *pointer, } static void +keyboard_handle_keymap(void *data, struct wl_keyboard *keyboard, + uint32_t format, int fd, uint32_t size) +{ + close(fd); +} + +static void keyboard_handle_enter(void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys) @@ -146,6 +153,7 @@ static const struct wl_pointer_listener pointer_listener = { }; static const struct wl_keyboard_listener keyboard_listener = { + keyboard_handle_keymap, keyboard_handle_enter, keyboard_handle_leave, keyboard_handle_key, |