mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-23 19:00:37 +01:00
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:
parent
787a664b5a
commit
08650b0268
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue