[server] Send keymap if we have one when creating a keyboard
This commit is contained in:
parent
713dbc51fa
commit
b47c6566a8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue