1
0
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:
Alexander Preisinger 2013-11-13 00:02:01 +01:00
parent e4bbb1d348
commit 95ed81c329

View File

@ -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);