diff options
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; } |