aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorRouven Czerwinski <rouven@czerwinskis.de>2018-11-05 20:28:59 +0100
committerRouven Czerwinski <rouven@czerwinskis.de>2018-11-05 20:32:45 +0100
commit5fdffea99ac5fcfd3618256a0291c9ff71cb1480 (patch)
tree7c67258b505b3d23e2585639362fd5d13a00bf29 /sway/commands
parente9c77970fa23a7eda88fc0dde684961e3caca5e9 (diff)
commands/exec_always: defer command on config validation
The exec_always command was executed twice, since it was not checking for the config->validating variable. Fix this by defering the command if the configuration is validating. Fixes #3072
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/exec_always.c2
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;
}