aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/kill.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-02 21:01:33 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-02 21:01:33 -0400
commit2c165e1288cbb60f5e677595e35f58a9c56c7010 (patch)
tree8dc7105631a62ce2635bb18cf26abea5d02e7837 /sway/commands/kill.c
parentcleanup split command handlers (diff)
downloadsway-2c165e1288cbb60f5e677595e35f58a9c56c7010.tar.gz
sway-2c165e1288cbb60f5e677595e35f58a9c56c7010.tar.zst
sway-2c165e1288cbb60f5e677595e35f58a9c56c7010.zip
fix more close segfaults
Diffstat (limited to 'sway/commands/kill.c')
-rw-r--r--sway/commands/kill.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/commands/kill.c b/sway/commands/kill.c
index 46d6e98e..811c3e6b 100644
--- a/sway/commands/kill.c
+++ b/sway/commands/kill.c
@@ -19,11 +19,8 @@ struct cmd_results *cmd_kill(int argc, char **argv) {
19 "Can only kill views and containers with this command"); 19 "Can only kill views and containers with this command");
20 break; 20 break;
21 case C_CONTAINER: 21 case C_CONTAINER:
22 con = container_destroy(con);
23 arrange_windows(con, -1, -1);
24 break;
25 case C_VIEW: 22 case C_VIEW:
26 view_close(con->sway_view); 23 container_close(con);
27 break; 24 break;
28 } 25 }
29 26