From 9096762ad24397ede2e91eebe10e34b89ce19172 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sun, 25 Mar 2018 01:34:24 +0100 Subject: change order of initialization --- src/skhd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/skhd.c b/src/skhd.c index 6205c45..5360c7e 100644 --- a/src/skhd.c +++ b/src/skhd.c @@ -182,20 +182,20 @@ int main(int argc, char **argv) error("skhd: must be run with accessibility access! abort..\n"); } - if (!config_file) { - set_config_path(); - } - printf("skhd: using config '%s'\n", config_file); - if (!initialize_keycode_map()) { error("skhd: could not initialize keycode map! abort..\n"); } + if (!config_file) { + set_config_path(); + } + table_init(&hotkey_map, 131, (table_hash_func) hash_hotkey, (table_compare_func) same_hotkey); + printf("skhd: using config '%s'\n", config_file); parse_config_helper(config_file); signal(SIGCHLD, SIG_IGN); -- cgit v1.2.3