tools/demo-server: set the server keymap in our local struct

Where the demo server is run with a --layout, set that in our local struct so
the printed messages use the correct keysyms.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-10-21 11:33:54 +10:00
parent 787a664b5a
commit 08650b0268

View file

@ -116,6 +116,14 @@ setup_keymap(struct eis_demo_server *server, struct eis_device *device)
eis_device_keyboard_set_keymap(device, k);
memfile_unref(f);
_unref_(xkb_state) *state = xkb_state_new(keymap);
if (!state)
return;
server->ctx = steal(&ctx);
server->keymap = steal(&keymap);
server->state = steal(&state);
return;
}