diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index a4e06c57..1d45b256 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <wlr/types/wlr_cursor.h> | 7 | #include <wlr/types/wlr_cursor.h> |
8 | #include <wlr/types/wlr_data_device.h> | 8 | #include <wlr/types/wlr_data_device.h> |
9 | #include <wlr/types/wlr_idle.h> | 9 | #include <wlr/types/wlr_idle.h> |
10 | #include <wlr/types/wlr_keyboard_group.h> | ||
10 | #include <wlr/types/wlr_output_layout.h> | 11 | #include <wlr/types/wlr_output_layout.h> |
11 | #include <wlr/types/wlr_primary_selection.h> | 12 | #include <wlr/types/wlr_primary_selection.h> |
12 | #include <wlr/types/wlr_tablet_v2.h> | 13 | #include <wlr/types/wlr_tablet_v2.h> |
@@ -691,7 +692,12 @@ static void seat_configure_keyboard(struct sway_seat *seat, | |||
691 | if (!seat_device->keyboard) { | 692 | if (!seat_device->keyboard) { |
692 | sway_keyboard_create(seat, seat_device); | 693 | sway_keyboard_create(seat, seat_device); |
693 | } | 694 | } |
694 | sway_keyboard_configure(seat_device->keyboard); | 695 | if (!wlr_keyboard_group_from_wlr_keyboard( |
696 | seat_device->input_device->wlr_device->keyboard)) { | ||
697 | // Do not configure keyboard group keyboards. They will be configured | ||
698 | // based on the keyboards in the group. | ||
699 | sway_keyboard_configure(seat_device->keyboard); | ||
700 | } | ||
695 | wlr_seat_set_keyboard(seat->wlr_seat, | 701 | wlr_seat_set_keyboard(seat->wlr_seat, |
696 | seat_device->input_device->wlr_device); | 702 | seat_device->input_device->wlr_device); |
697 | struct sway_node *focus = seat_get_focus(seat); | 703 | struct sway_node *focus = seat_get_focus(seat); |
@@ -746,6 +752,13 @@ static struct sway_seat_device *seat_get_device(struct sway_seat *seat, | |||
746 | } | 752 | } |
747 | } | 753 | } |
748 | 754 | ||
755 | struct sway_keyboard_group *group = NULL; | ||
756 | wl_list_for_each(group, &seat->keyboard_groups, link) { | ||
757 | if (group->seat_device->input_device == input_device) { | ||
758 | return group->seat_device; | ||
759 | } | ||
760 | } | ||
761 | |||
749 | return NULL; | 762 | return NULL; |
750 | } | 763 | } |
751 | 764 | ||