mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 06:16:38 +08: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:
committed by
wm4
parent
0d3e7f5c3e
commit
2995bf176d
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user