aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/keyboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c
index 96d5b72d..3f4a7289 100644
--- a/sway/input/keyboard.c
+++ b/sway/input/keyboard.c
@@ -1070,6 +1070,13 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
1070 } 1070 }
1071 } 1071 }
1072 1072
1073 // If the seat has no active keyboard, set this one
1074 struct wlr_seat *seat = keyboard->seat_device->sway_seat->wlr_seat;
1075 struct wlr_keyboard *current_keyboard = seat->keyboard_state.keyboard;
1076 if (current_keyboard == NULL) {
1077 wlr_seat_set_keyboard(seat, keyboard->wlr);
1078 }
1079
1073 wl_list_remove(&keyboard->keyboard_key.link); 1080 wl_list_remove(&keyboard->keyboard_key.link);
1074 wl_signal_add(&keyboard->wlr->events.key, &keyboard->keyboard_key); 1081 wl_signal_add(&keyboard->wlr->events.key, &keyboard->keyboard_key);
1075 keyboard->keyboard_key.notify = handle_keyboard_key; 1082 keyboard->keyboard_key.notify = handle_keyboard_key;