aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-01-21 19:13:11 -0500
committerTony Crisci <tony@dubstepdish.com>2018-01-21 19:13:11 -0500
commitbeb3805cf0300bc2640290233aa763d757c12466 (patch)
tree202b9b951d0123a7f3b248dee1f913114823036e /sway/commands
parent38a1628a76e22220e18ece7ee82ac45421d9b42f (diff)
downloadsway-beb3805cf0300bc2640290233aa763d757c12466.tar.xz
dont allow kill command in config
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/kill.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/kill.c b/sway/commands/kill.c
index 8208bc14..3804f0b0 100644
--- a/sway/commands/kill.c
+++ b/sway/commands/kill.c
@@ -6,6 +6,10 @@
#include "sway/commands.h"
struct cmd_results *cmd_kill(int argc, char **argv) {
+ if (config->reading) {
+ return cmd_results_new(CMD_FAILURE, "kill",
+ "Command 'kill' cannot be used in the config file");
+ }
if (!sway_assert(config->handler_context.current_container,
"cmd_kill called without container context")) {
return cmd_results_new(CMD_INVALID, NULL,