[server] Send keymap if we have one when creating a keyboard

This commit is contained in:
Martin Gräßlin 2015-05-28 10:15:42 +02:00
parent 713dbc51fa
commit b47c6566a8

View file

@ -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