mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +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
@ -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 New Issue
Block a user