aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Konstantin Pospelov <kupospelov@gmail.com>2019-03-05 22:38:26 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2019-04-26 20:56:48 +0300
commitc42497aca00a234679ca5dc2884ab40afe0d84ad (patch)
treeee0b1521537cd97c943f894a29efa5e4c12bb1e3 /sway/config.c
parentbindsym: consider xkb_rule_names for --to-code (diff)
downloadsway-c42497aca00a234679ca5dc2884ab40afe0d84ad.tar.gz
sway-c42497aca00a234679ca5dc2884ab40afe0d84ad.tar.zst
sway-c42497aca00a234679ca5dc2884ab40afe0d84ad.zip
bindsym: change xkb_rule_names initialization
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c5
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,
989void translate_keysyms(struct input_config *input_config) { 989void 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