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-12-01 19:20:04 +01:00
committed by wm4
parent 0d3e7f5c3e
commit 2995bf176d
+1 -2
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);