diff options
-rw-r--r-- | sway/input/keyboard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c index 30756acb..0891145b 100644 --- a/sway/input/keyboard.c +++ b/sway/input/keyboard.c | |||
@@ -755,6 +755,12 @@ static void sway_keyboard_group_add(struct sway_keyboard *keyboard) { | |||
755 | struct wlr_keyboard *wlr_keyboard = device->wlr_device->keyboard; | 755 | struct wlr_keyboard *wlr_keyboard = device->wlr_device->keyboard; |
756 | struct sway_seat *seat = keyboard->seat_device->sway_seat; | 756 | struct sway_seat *seat = keyboard->seat_device->sway_seat; |
757 | struct seat_config *sc = seat_get_config(seat); | 757 | struct seat_config *sc = seat_get_config(seat); |
758 | |||
759 | if (device->is_virtual) { | ||
760 | // Virtual devices should not be grouped | ||
761 | return; | ||
762 | } | ||
763 | |||
758 | if (!sc) { | 764 | if (!sc) { |
759 | sc = seat_get_config_by_name("*"); | 765 | sc = seat_get_config_by_name("*"); |
760 | } | 766 | } |