diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-03 19:23:59 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-04-03 19:23:59 -0400 |
commit | 481a8275c178f81bb2d9927c5047e959fdbc383a (patch) | |
tree | 4a2f1f85be06a17f2885a53676bd446d8fd8c502 /sway/commands | |
parent | eca4468c2cacd87677f7f5831d8a74f8d811d318 (diff) | |
download | sway-481a8275c178f81bb2d9927c5047e959fdbc383a.tar.xz |
address feedback
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/kill.c | 14 |
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) { struct sway_container *con = config->handler_context.current_container; - switch (con->type) { - case C_ROOT: - case C_OUTPUT: - case C_WORKSPACE: - case C_TYPES: - return cmd_results_new(CMD_INVALID, NULL, - "Can only kill views and containers with this command"); - break; - case C_CONTAINER: - case C_VIEW: - container_close(con); - break; - } + container_close(con); return cmd_results_new(CMD_SUCCESS, NULL, NULL); } |