aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 aedf3ae6..c5a646c4 100644
--- a/sway/input/keyboard.c
+++ b/sway/input/keyboard.c
@@ -1068,6 +1068,13 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
1068 } 1068 }
1069 } 1069 }
1070 1070
1071 // If the seat has no active keyboard, set this one
1072 struct wlr_seat *seat = keyboard->seat_device->sway_seat->wlr_seat;
1073 struct wlr_keyboard *current_keyboard = seat->keyboard_state.keyboard;
1074 if (current_keyboard == NULL) {
1075 wlr_seat_set_keyboard(seat, keyboard->wlr);
1076 }
1077
1071 wl_list_remove(&keyboard->keyboard_key.link); 1078 wl_list_remove(&keyboard->keyboard_key.link);
1072 wl_signal_add(&keyboard->wlr->events.key, &keyboard->keyboard_key); 1079 wl_signal_add(&keyboard->wlr->events.key, &keyboard->keyboard_key);
1073 keyboard->keyboard_key.notify = handle_keyboard_key; 1080 keyboard->keyboard_key.notify = handle_keyboard_key;