summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 56701634..d572afa0 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -1927,8 +1927,8 @@ static struct cmd_results *cmd_kill(int argc, char **argv) {
1927 if (config->reading) return cmd_results_new(CMD_FAILURE, "kill", "Can't be used in config file."); 1927 if (config->reading) return cmd_results_new(CMD_FAILURE, "kill", "Can't be used in config file.");
1928 if (!config->active) return cmd_results_new(CMD_FAILURE, "kill", "Can only be used when sway is running."); 1928 if (!config->active) return cmd_results_new(CMD_FAILURE, "kill", "Can only be used when sway is running.");
1929 1929
1930 swayc_t *view = get_focused_container(&root_container); 1930 swayc_t *container = get_focused_container(&root_container);
1931 wlc_view_close(view->handle); 1931 close_views(container);
1932 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 1932 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
1933} 1933}
1934 1934