From 3bdb843b9da0ff4b986c1d117f06b1de4d0f857a Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Thu, 30 Aug 2018 14:20:23 +0200 Subject: minor fixes --- src/hotkey.c | 9 +-------- 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; } -- cgit v1.2.3