diff options
author | Andri Yngvason <andri@yngvason.is> | 2020-04-10 21:28:47 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-04-14 12:07:24 +0200 |
commit | b18d9434428bd6b5e2dce1725a82a83a383083f5 (patch) | |
tree | d48778f93659625dfae073f2ae289ceafd27bf4c | |
parent | input: Mark virtual devices as such (diff) | |
download | sway-b18d9434428bd6b5e2dce1725a82a83a383083f5.tar.gz sway-b18d9434428bd6b5e2dce1725a82a83a383083f5.tar.zst sway-b18d9434428bd6b5e2dce1725a82a83a383083f5.zip |
input: keyboard: Never group virtual keyboards.
This fixes #5134
-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 | } |