mirror of
https://github.com/swaywm/sway.git
synced 2024-12-26 15:06:34 +01:00
input/keyboard: don't set layout for virtual keyboard device
This prevents us from recompiling keymap every time a virtual device is created by clients like fcitx5
This commit is contained in:
parent
4c3c060211
commit
e32bdaa7be
1 changed files with 3 additions and 1 deletions
|
@ -1074,7 +1074,9 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
|
|||
keyboard->repeat_rate, keyboard->repeat_delay);
|
||||
}
|
||||
|
||||
sway_keyboard_set_layout(keyboard, input_config);
|
||||
if (!keyboard->seat_device->input_device->is_virtual) {
|
||||
sway_keyboard_set_layout(keyboard, input_config);
|
||||
}
|
||||
|
||||
wl_list_remove(&keyboard->keyboard_key.link);
|
||||
wl_signal_add(&keyboard->wlr->events.key, &keyboard->keyboard_key);
|
||||
|
|
Loading…
Reference in a new issue