summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-11-13 00:02:01 +0100
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-11-13 00:18:20 +0100
commit95ed81c32902899168709e0f12d55936ee3cae5f (patch)
tree6161284936d58825f53ca4309272a0df62ad3517 /video
parente4bbb1d348dafbb32722f413648006a7bd9d0897 (diff)
downloadmpv-95ed81c32902899168709e0f12d55936ee3cae5f.tar.bz2
mpv-95ed81c32902899168709e0f12d55936ee3cae5f.tar.xz
wayland: create xkbcommon keymap from string
Fixes a problem where the passed size doesn't match the actuall string.
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index ddbf7459c5..8a89964514 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -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);