Skip to content

Commit

Permalink
Fix crash when reaping a workspace
Browse files Browse the repository at this point in the history
It wasn't returning the surviving container.
  • Loading branch information
RyanDwyer committed Aug 29, 2018
1 parent 095ca75 commit 2438f5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sway/tree/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ struct sway_container *container_reap_empty(struct sway_container *con) {
}
if (con && con->type == C_WORKSPACE) {
workspace_consider_destroy(con);
if (con->destroying) {
con = con->parent;
}
}
return con;
}
Expand Down

0 comments on commit 2438f5f

Please sign in to comment.