From 3891a7c73fccfbd96f2cc36c3e079d88cc88465d Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Sun, 13 Dec 2015 22:49:58 +0100 Subject: Don't reset x,y position before use. The x and y position is calculated based on the position of the bar, we don't want to reset these values when we need them. --- sway/layout.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sway/layout.c b/sway/layout.c index 333c1928..5c57d0a7 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -455,7 +455,6 @@ static void arrange_windows_r(swayc_t *container, double width, double height) { container->width = width; container->height = height; - x = 0, y = 0; for (i = 0; i < container->children->length; ++i) { swayc_t *child = container->children->items[i]; int gap = swayc_gap(child); -- cgit v1.2.3