aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-02 21:01:33 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-02 21:01:33 -0400
commit2c165e1288cbb60f5e677595e35f58a9c56c7010 (patch)
tree8dc7105631a62ce2635bb18cf26abea5d02e7837 /sway/tree/layout.c
parentcleanup split command handlers (diff)
downloadsway-2c165e1288cbb60f5e677595e35f58a9c56c7010.tar.gz
sway-2c165e1288cbb60f5e677595e35f58a9c56c7010.tar.zst
sway-2c165e1288cbb60f5e677595e35f58a9c56c7010.zip
fix more close segfaults
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index 95a84d12..b0ce4aaf 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -110,7 +110,7 @@ struct sway_container *container_reap_empty(struct sway_container *container) {
110 wlr_log(L_DEBUG, "Reaping %p %s '%s'", container, 110 wlr_log(L_DEBUG, "Reaping %p %s '%s'", container,
111 container_type_to_str(container->type), container->name); 111 container_type_to_str(container->type), container->name);
112 while (container->type != C_ROOT && container->type != C_OUTPUT 112 while (container->type != C_ROOT && container->type != C_OUTPUT
113 && container->children->length == 0) { 113 && container->children && container->children->length == 0) {
114 if (container->type == C_WORKSPACE) { 114 if (container->type == C_WORKSPACE) {
115 if (!workspace_is_visible(container)) { 115 if (!workspace_is_visible(container)) {
116 struct sway_container *parent = container->parent; 116 struct sway_container *parent = container->parent;