diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-03-25 01:34:24 +0100 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-03-25 01:34:24 +0100 |
commit | 9096762ad24397ede2e91eebe10e34b89ce19172 (patch) | |
tree | e1583c767bc2fa8e99998cbe8c1523322860e199 /src/skhd.c | |
parent | a6df9c3fac486b2ba9274737666ac2ca6c90dcd9 (diff) | |
download | skhd-9096762ad24397ede2e91eebe10e34b89ce19172.tar.gz skhd-9096762ad24397ede2e91eebe10e34b89ce19172.zip |
change order of initialization
Diffstat (limited to '')
-rw-r--r-- | src/skhd.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |