aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/keyboard.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-18 10:44:51 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-18 10:44:51 -0500
commit4c436a1a6f78ce9eae40791b85c02d44458de727 (patch)
tree64cb8fed2e33720ac6c1315e3ff8e205c50c1e08 /sway/input/keyboard.c
parentimprove xkb command logging (diff)
downloadsway-4c436a1a6f78ce9eae40791b85c02d44458de727.tar.gz
sway-4c436a1a6f78ce9eae40791b85c02d44458de727.tar.zst
sway-4c436a1a6f78ce9eae40791b85c02d44458de727.zip
remove assumption of one device per identifier
Diffstat (limited to 'sway/input/keyboard.c')
-rw-r--r--sway/input/keyboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c
index ce0df3c5..bb18edd2 100644
--- a/sway/input/keyboard.c
+++ b/sway/input/keyboard.c
@@ -91,6 +91,8 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
91 wlr_keyboard_set_keymap(wlr_device->keyboard, keyboard->keymap); 91 wlr_keyboard_set_keymap(wlr_device->keyboard, keyboard->keymap);
92 wlr_keyboard_set_repeat_info(wlr_device->keyboard, 25, 600); 92 wlr_keyboard_set_repeat_info(wlr_device->keyboard, 25, 600);
93 xkb_context_unref(context); 93 xkb_context_unref(context);
94 struct wlr_seat *seat = keyboard->seat_device->sway_seat->wlr_seat;
95 wlr_seat_set_keyboard(seat, wlr_device);
94 96
95 wl_list_remove(&keyboard->keyboard_key.link); 97 wl_list_remove(&keyboard->keyboard_key.link);
96 wl_signal_add(&wlr_device->keyboard->events.key, &keyboard->keyboard_key); 98 wl_signal_add(&wlr_device->keyboard->events.key, &keyboard->keyboard_key);