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>
This commit is contained in:
Daniel Stone
2012-06-01 12:14:06 +01:00
committed by Kristian Høgsberg
parent e2ef43aa0e
commit b7452fe313
5 changed files with 185 additions and 50 deletions
+8
View File
@@ -111,6 +111,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,
@@ -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,