From b47c6566a8d4b6da8cdfbe2d3ebe5e9d156e7138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 28 May 2015 10:15:42 +0200 Subject: [PATCH] [server] Send keymap if we have one when creating a keyboard --- src/wayland/seat_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index 0cce9d9cda..d0f7855867 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -343,6 +343,9 @@ void SeatInterface::Private::getKeyboard(wl_client *client, wl_resource *resourc delete keyboard; return; } + if (keys.keymap.xkbcommonCompatible) { + keyboard->setKeymap(keys.keymap.fd, keys.keymap.size); + } keyboards << keyboard; if (keys.focus.surface && keys.focus.surface->client()->client() == client) { // this is a keyboard for the currently focused keyboard surface