summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-11-13 00:02:01 +0100
committerwm4 <wm4@nowhere>2013-12-01 19:20:04 +0100
commit2995bf176d65d05ddf29fb49beace518412c19fb (patch)
tree4d2d0a83dca1e3204ae78dca152babdf620bb386
parent0d3e7f5c3e1fe5b640899d1ce88ff6fed02d0ae5 (diff)
downloadmpv-2995bf176d65d05ddf29fb49beace518412c19fb.tar.bz2
mpv-2995bf176d65d05ddf29fb49beace518412c19fb.tar.xz
wayland: create xkbcommon keymap from string
Fixes a problem where the passed size doesn't match the actuall string.
-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 239e57519b..383b2d9ed7 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);