diff options
Diffstat (limited to 'sway/tree/arrange.c')
-rw-r--r-- | sway/tree/arrange.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index 494a8461..cf4a5d9a 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c | |||
@@ -144,9 +144,9 @@ static void apply_tabbed_or_stacked_layout(struct sway_container *parent) { | |||
144 | 144 | ||
145 | static void arrange_children_of(struct sway_container *parent); | 145 | static void arrange_children_of(struct sway_container *parent); |
146 | 146 | ||
147 | static void arrange_floating(struct sway_container *floating) { | 147 | static void arrange_floating(list_t *floating) { |
148 | for (int i = 0; i < floating->children->length; ++i) { | 148 | for (int i = 0; i < floating->length; ++i) { |
149 | struct sway_container *floater = floating->children->items[i]; | 149 | struct sway_container *floater = floating->items[i]; |
150 | if (floater->type == C_VIEW) { | 150 | if (floater->type == C_VIEW) { |
151 | view_autoconfigure(floater->sway_view); | 151 | view_autoconfigure(floater->sway_view); |
152 | } else { | 152 | } else { |
@@ -154,7 +154,6 @@ static void arrange_floating(struct sway_container *floating) { | |||
154 | } | 154 | } |
155 | container_set_dirty(floater); | 155 | container_set_dirty(floater); |
156 | } | 156 | } |
157 | container_set_dirty(floating); | ||
158 | } | 157 | } |
159 | 158 | ||
160 | static void arrange_children_of(struct sway_container *parent) { | 159 | static void arrange_children_of(struct sway_container *parent) { |
@@ -179,9 +178,6 @@ static void arrange_children_of(struct sway_container *parent) { | |||
179 | case L_NONE: | 178 | case L_NONE: |
180 | apply_horiz_layout(parent); | 179 | apply_horiz_layout(parent); |
181 | break; | 180 | break; |
182 | case L_FLOATING: | ||
183 | arrange_floating(parent); | ||
184 | break; | ||
185 | } | 181 | } |
186 | 182 | ||
187 | // Recurse into child containers | 183 | // Recurse into child containers |