error: invalid conversion from ‘int’ to ‘xkb_keymap_compile_flags’

This commit is contained in:
Alcaro 2017-01-02 02:17:32 +01:00
parent f62ad35238
commit 7b8a5b4f5b

View File

@ -77,7 +77,7 @@ int init_xkb(int fd, size_t size)
if (map_str == MAP_FAILED)
goto error;
xkb_map = xkb_keymap_new_from_string(xkb_ctx, map_str, XKB_KEYMAP_FORMAT_TEXT_V1, 0);
xkb_map = xkb_keymap_new_from_string(xkb_ctx, map_str, XKB_KEYMAP_FORMAT_TEXT_V1, XKB_KEYMAP_COMPILE_NO_FLAGS);
munmap(map_str, size);
}
else