mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-25 07:58:13 +02:00
virtual_keyboard_v1: handle NO_KEYMAP
This commit is contained in:
parent
91ef4ce208
commit
a00a9178ae
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue