From 0c194ced57a12a21df6ee8dfda15ee53376e1282 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Thu, 10 Oct 2013 19:44:21 +0200 Subject: [PATCH] compositor-wayland: Handle keymap changes --- src/compositor-wayland.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 519b1bcc..21ce5cb2 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -517,7 +517,11 @@ input_handle_keymap(void *data, struct wl_keyboard *keyboard, uint32_t format, return; } - weston_seat_init_keyboard(&input->base, keymap); + if (input->base.keyboard) + weston_seat_update_keymap(&input->base, keymap); + else + weston_seat_init_keyboard(&input->base, keymap); + xkb_map_unref(keymap); }