mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 04:11:03 +00:00
wayland: create xkbcommon keymap from string
Fixes a problem where the passed size doesn't match the actuall string.
This commit is contained in:
parent
e4bbb1d348
commit
95ed81c329
@ -208,9 +208,8 @@ static void keyboard_handle_keymap(void *data,
|
||||
return;
|
||||
}
|
||||
|
||||
wl->input.xkb.keymap = xkb_keymap_new_from_buffer(wl->input.xkb.context,
|
||||
wl->input.xkb.keymap = xkb_keymap_new_from_string(wl->input.xkb.context,
|
||||
map_str,
|
||||
size,
|
||||
XKB_KEYMAP_FORMAT_TEXT_V1,
|
||||
0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user