diff options
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sway/layout.c b/sway/layout.c index 18ecb1e7..7f3adc31 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -172,18 +172,13 @@ void arrange_windows(swayc_t *container, double width, double height) { | |||
172 | child->x = x; | 172 | child->x = x; |
173 | child->y = y; | 173 | child->y = y; |
174 | arrange_windows(child, -1, -1); | 174 | arrange_windows(child, -1, -1); |
175 | // Removed for now because wlc works with relative positions | 175 | x += child->width; |
176 | // Addition can be reconsidered once wlc positions are changed | ||
177 | // x += child->width; | ||
178 | } | 176 | } |
179 | return; | 177 | return; |
180 | case C_OUTPUT: | 178 | case C_OUTPUT: |
181 | container->width = width; | 179 | container->width = width; |
182 | container->height = height; | 180 | container->height = height; |
183 | // These lines make x/y negative and result in stuff glitching out | 181 | x = 0, y = 0; |
184 | // Their addition can be reconsidered once wlc positions are changed | ||
185 | // x -= container->x; | ||
186 | // y -= container->y; | ||
187 | for (i = 0; i < container->children->length; ++i) { | 182 | for (i = 0; i < container->children->length; ++i) { |
188 | swayc_t *child = container->children->items[i]; | 183 | swayc_t *child = container->children->items[i]; |
189 | child->x = x + container->gaps; | 184 | child->x = x + container->gaps; |