mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
Merge branch 'virtual-keyboard-buf' into 'master'
wlr_virtual_keyboard_v1: specify size when creating keymap Closes #4072 See merge request wlroots/wlroots!5331
This commit is contained in:
commit
724eff762a
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ static void virtual_keyboard_keymap(struct wl_client *client,
|
|||
if (data == MAP_FAILED) {
|
||||
goto fd_fail;
|
||||
}
|
||||
struct xkb_keymap *keymap = xkb_keymap_new_from_string(context, data,
|
||||
struct xkb_keymap *keymap = xkb_keymap_new_from_buffer(context, data, size,
|
||||
XKB_KEYMAP_FORMAT_TEXT_V1, XKB_KEYMAP_COMPILE_NO_FLAGS);
|
||||
munmap(data, size);
|
||||
if (!keymap) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue