diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-05 21:15:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 21:15:56 +0100 |
commit | fbf1730557687964ca520e70d94ab4b0fd63a595 (patch) | |
tree | f535ef37f38ea475e7e63b0a237f30804317aa06 /sway/commands | |
parent | e9c77970fa23a7eda88fc0dde684961e3caca5e9 (diff) | |
parent | f54287eaf3f96e9574ebd4828788fd20be4b35dd (diff) |
Merge pull request #3078 from Emantor/fix/exec_always_double_load
Fix the double execution of exec_always commands on config reloads
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/exec_always.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c index 8bdeceeb..7a15709b 100644 --- a/sway/commands/exec_always.c +++ b/sway/commands/exec_always.c @@ -15,7 +15,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) { struct cmd_results *error = NULL; - if (!config->active) return cmd_results_new(CMD_DEFER, NULL, NULL); + if (!config->active || config->validating) return cmd_results_new(CMD_DEFER, NULL, NULL); if ((error = checkarg(argc, argv[-1], EXPECTED_AT_LEAST, 1))) { return error; } |