diff options
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index d072c410..e2ea46a7 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -63,8 +63,8 @@ swayc_t *replace_child(swayc_t *child, swayc_t *new_child) { | |||
63 | swayc_t *remove_child(swayc_t *child) { | 63 | swayc_t *remove_child(swayc_t *child) { |
64 | int i; | 64 | int i; |
65 | swayc_t *parent = child->parent; | 65 | swayc_t *parent = child->parent; |
66 | // Special case for floating views | ||
67 | if (child->is_floating) { | 66 | if (child->is_floating) { |
67 | // Special case for floating views | ||
68 | for (i = 0; i < parent->floating->length; ++i) { | 68 | for (i = 0; i < parent->floating->length; ++i) { |
69 | if (parent->floating->items[i] == child) { | 69 | if (parent->floating->items[i] == child) { |
70 | list_del(parent->floating, i); | 70 | list_del(parent->floating, i); |