[PATCH v2 3/4] compositor-wayland: Handle keymap changes
Rui Matos
tiagomatos at gmail.com
Thu Oct 10 19:44:21 CEST 2013
---
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 77b2a2c..0fd7267 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -515,7 +515,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);
}
--
1.8.3.1
More information about the wayland-devel
mailing list