Merge pull request #2535 from RyanDwyer/fix-reap-crash

Fix crash when reaping a workspace
This commit is contained in:
Drew DeVault 2018-08-28 21:00:56 -04:00 committed by GitHub
commit ed775103c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}