mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-01 06:20:17 +01:00
Merge pull request #2535 from RyanDwyer/fix-reap-crash
Fix crash when reaping a workspace
This commit is contained in:
commit
ed775103c8
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue