summaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sway/layout.c b/sway/layout.c
index c53b9dad..1bc65050 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -73,11 +73,12 @@ swayc_t *remove_child(swayc_t *parent, swayc_t *child) {
73 break; 73 break;
74 } 74 }
75 } 75 }
76 } 76 } else {
77 for (i = 0; i < parent->children->length; ++i) { 77 for (i = 0; i < parent->children->length; ++i) {
78 if (parent->children->items[i] == child) { 78 if (parent->children->items[i] == child) {
79 list_del(parent->children, i); 79 list_del(parent->children, i);
80 break; 80 break;
81 }
81 } 82 }
82 } 83 }
83 if (parent->focused == child) { 84 if (parent->focused == child) {