virtual_keyboard_v1: handle NO_KEYMAP

This commit is contained in:
Simon Ser 2026-05-21 13:42:17 +02:00 committed by Simon Zeni
parent 91ef4ce208
commit a00a9178ae

View file

@ -51,6 +51,12 @@ static void virtual_keyboard_keymap(struct wl_client *client,
return;
}
if (format == WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP) {
keyboard->has_keymap = true;
close(fd);
return;
}
struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
if (!context) {
goto context_fail;