diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-08-30 14:20:23 +0200 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-08-30 14:20:23 +0200 |
commit | 3bdb843b9da0ff4b986c1d117f06b1de4d0f857a (patch) | |
tree | 6f44c7b28f0ea4670282685fd9deed4ee83293d5 /src | |
parent | 3d90dbeaa9cf13058ed349ba7beb2532c571c7fb (diff) | |
download | skhd-3bdb843b9da0ff4b986c1d117f06b1de4d0f857a.tar.gz skhd-3bdb843b9da0ff4b986c1d117f06b1de4d0f857a.zip |
minor fixes
Diffstat (limited to '')
-rw-r--r-- | src/hotkey.c | 9 | ||||
-rw-r--r-- | src/parse.c | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/hotkey.c b/src/hotkey.c index 1cb4669..f1d2ab6 100644 --- a/src/hotkey.c +++ b/src/hotkey.c @@ -96,13 +96,6 @@ unsigned long hash_mode(char *key) return hash; } -internal inline bool -same_string(char *a, char *b) -{ - if (!a || !b) return false; - return same_mode(a, b); -} - internal inline void fork_and_exec(char *command) { @@ -158,7 +151,7 @@ find_process_command_mapping(struct hotkey *hotkey, uint32_t *capture, struct ca } } - *capture &= ~FOUND_HOTKEY; + *capture &= ~HOTKEY_FOUND; return NULL; } diff --git a/src/parse.c b/src/parse.c index 46378b2..399f6c6 100644 --- a/src/parse.c +++ b/src/parse.c @@ -304,7 +304,7 @@ parse_hotkey(struct parser *parser) if (parser_match(parser, Token_Command)) { parse_command(parser, hotkey); } else if (parser_match(parser, Token_BeginList)) { - parse_process_command_list(parser); + parse_process_command_list(parser, hotkey); if (parser->error) { goto err; } |