aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorAndri Yngvason <andri@yngvason.is>2020-04-10 21:28:47 +0000
committerSimon Ser <contact@emersion.fr>2020-04-14 12:07:24 +0200
commitb18d9434428bd6b5e2dce1725a82a83a383083f5 (patch)
treed48778f93659625dfae073f2ae289ceafd27bf4c /sway/input
parent46599df0a2260ddc77aa18a3173a1cd6c7d10c0b (diff)
input: keyboard: Never group virtual keyboards.
This fixes #5134
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/keyboard.c6
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) {
struct wlr_keyboard *wlr_keyboard = device->wlr_device->keyboard;
struct sway_seat *seat = keyboard->seat_device->sway_seat;
struct seat_config *sc = seat_get_config(seat);
+
+ if (device->is_virtual) {
+ // Virtual devices should not be grouped
+ return;
+ }
+
if (!sc) {
sc = seat_get_config_by_name("*");
}