diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-31 15:17:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-31 15:17:32 -0400 |
commit | 543081ab1c050654a11b899f276b273acd91b43b (patch) | |
tree | 407b0e53e843fd15a9e0a7bc92e75e25c6af3b9b /sway/tree | |
parent | 59f362196b84d6cf455b574d887ec3e0c3163eb3 (diff) | |
parent | 8aedc042eeaa95a7a0be7c1dd06e3739ee1c7bd4 (diff) |
Merge pull request #1689 from emersion/destroy-output-segfaults
Fix two segfaults when destroying outputs
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 588ceb2d..ce0682dc 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c @@ -107,7 +107,7 @@ struct sway_container *container_reap_empty(struct sway_container *container) { return NULL; } wlr_log(L_DEBUG, "reaping %p %s", container, container->name); - while (container->children->length == 0) { + while (container != &root_container && container->children->length == 0) { if (container->type == C_WORKSPACE) { if (!workspace_is_visible(container)) { struct sway_container *parent = container->parent; |