summaryrefslogtreecommitdiffstats
path: root/sway/input/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/keyboard.c')
-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 1002698e..ba0e020c 100644
--- a/sway/input/keyboard.c
+++ b/sway/input/keyboard.c
@@ -853,6 +853,12 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
853 struct wlr_input_device *wlr_device = 853 struct wlr_input_device *wlr_device =
854 keyboard->seat_device->input_device->wlr_device; 854 keyboard->seat_device->input_device->wlr_device;
855 855
856 if (!sway_assert(!wlr_keyboard_group_from_wlr_keyboard(wlr_device->keyboard),
857 "sway_keyboard_configure should not be called with a "
858 "keyboard group's keyboard")) {
859 return;
860 }
861
856 struct xkb_keymap *keymap = sway_keyboard_compile_keymap(input_config, NULL); 862 struct xkb_keymap *keymap = sway_keyboard_compile_keymap(input_config, NULL);
857 if (!keymap) { 863 if (!keymap) {
858 sway_log(SWAY_ERROR, "Failed to compile keymap. Attempting defaults"); 864 sway_log(SWAY_ERROR, "Failed to compile keymap. Attempting defaults");