mirror of
https://github.com/swaywm/sway.git
synced 2026-03-20 05:34:28 -04:00
fix more close segfaults
This commit is contained in:
parent
32ef182f47
commit
2c165e1288
5 changed files with 41 additions and 7 deletions
|
|
@ -19,11 +19,8 @@ struct cmd_results *cmd_kill(int argc, char **argv) {
|
|||
"Can only kill views and containers with this command");
|
||||
break;
|
||||
case C_CONTAINER:
|
||||
con = container_destroy(con);
|
||||
arrange_windows(con, -1, -1);
|
||||
break;
|
||||
case C_VIEW:
|
||||
view_close(con->sway_view);
|
||||
container_close(con);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue