diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c index fed01eb4..d4a4a2f7 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -337,7 +337,7 @@ static void config_defaults(struct sway_config *config) { | |||
337 | if (!(config->ipc_policies = create_list())) goto cleanup; | 337 | if (!(config->ipc_policies = create_list())) goto cleanup; |
338 | 338 | ||
339 | // The keysym to keycode translation | 339 | // The keysym to keycode translation |
340 | struct xkb_rule_names rules = {}; | 340 | struct xkb_rule_names rules = {0}; |
341 | config->keysym_translation_state = | 341 | config->keysym_translation_state = |
342 | keysym_translation_state_create(rules); | 342 | keysym_translation_state_create(rules); |
343 | 343 | ||
@@ -989,7 +989,8 @@ static void translate_binding_list(list_t *bindings, list_t *bindsyms, | |||
989 | void translate_keysyms(struct input_config *input_config) { | 989 | void translate_keysyms(struct input_config *input_config) { |
990 | keysym_translation_state_destroy(config->keysym_translation_state); | 990 | keysym_translation_state_destroy(config->keysym_translation_state); |
991 | 991 | ||
992 | struct xkb_rule_names rules = input_config_get_rule_names(input_config); | 992 | struct xkb_rule_names rules = {0}; |
993 | input_config_fill_rule_names(input_config, &rules); | ||
993 | config->keysym_translation_state = | 994 | config->keysym_translation_state = |
994 | keysym_translation_state_create(rules); | 995 | keysym_translation_state_create(rules); |
995 | 996 | ||