aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/kill.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-03 19:23:59 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-03 19:23:59 -0400
commit481a8275c178f81bb2d9927c5047e959fdbc383a (patch)
tree4a2f1f85be06a17f2885a53676bd446d8fd8c502 /sway/commands/kill.c
parentfix old todos (diff)
downloadsway-481a8275c178f81bb2d9927c5047e959fdbc383a.tar.gz
sway-481a8275c178f81bb2d9927c5047e959fdbc383a.tar.zst
sway-481a8275c178f81bb2d9927c5047e959fdbc383a.zip
address feedback
Diffstat (limited to 'sway/commands/kill.c')
-rw-r--r--sway/commands/kill.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sway/commands/kill.c b/sway/commands/kill.c
index 811c3e6b..f3fa52f1 100644
--- a/sway/commands/kill.c
+++ b/sway/commands/kill.c
@@ -10,19 +10,7 @@ struct cmd_results *cmd_kill(int argc, char **argv) {
10 struct sway_container *con = 10 struct sway_container *con =
11 config->handler_context.current_container; 11 config->handler_context.current_container;
12 12
13 switch (con->type) { 13 container_close(con);
14 case C_ROOT:
15 case C_OUTPUT:
16 case C_WORKSPACE:
17 case C_TYPES:
18 return cmd_results_new(CMD_INVALID, NULL,
19 "Can only kill views and containers with this command");
20 break;
21 case C_CONTAINER:
22 case C_VIEW:
23 container_close(con);
24 break;
25 }
26 14
27 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 15 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
28} 16}