diff options
Diffstat (limited to 'sway/input/keyboard.c')
-rw-r--r-- | sway/input/keyboard.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c index 04b8b0ce..396cc865 100644 --- a/sway/input/keyboard.c +++ b/sway/input/keyboard.c @@ -482,11 +482,9 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) { struct wlr_input_device *wlr_device = keyboard->seat_device->input_device->wlr_device; - struct xkb_rule_names rules; + struct xkb_rule_names rules = {0}; if (input_config) { - rules = input_config_get_rule_names(input_config); - } else { - memset(&rules, 0, sizeof(rules)); + input_config_fill_rule_names(input_config, &rules); } if (!rules.layout) { |