diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c index cbaab11e..90f6529a 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -220,9 +220,9 @@ bool read_config(FILE *file, bool is_active) { | |||
220 | list_t *args = split_string(line, " "); | 220 | list_t *args = split_string(line, " "); |
221 | struct cmd_handler *handler; | 221 | struct cmd_handler *handler; |
222 | if ((handler = find_handler(args->items[0]))) { | 222 | if ((handler = find_handler(args->items[0]))) { |
223 | if (handler->config_type > 0) { | 223 | if (handler->config_type == CMD_KEYBIND) { |
224 | sway_log(L_ERROR, "Invalid command during config ``%s''", line); | 224 | sway_log(L_ERROR, "Invalid command during config ``%s''", line); |
225 | } else if (handler->config_type < 0 && !is_active) { | 225 | } else if (handler->config_type == CMD_COMPOSITOR_READY && !is_active) { |
226 | sway_log(L_DEBUG, "Deferring command ``%s''", line); | 226 | sway_log(L_DEBUG, "Deferring command ``%s''", line); |
227 | char *cmd = malloc(strlen(line) + 1); | 227 | char *cmd = malloc(strlen(line) + 1); |
228 | strcpy(cmd, line); | 228 | strcpy(cmd, line); |