summaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-13 22:49:58 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-13 22:49:58 +0100
commit3891a7c73fccfbd96f2cc36c3e079d88cc88465d (patch)
tree36c5993fc50176701c65f558ecdd6998c82aad76 /sway/layout.c
parentMerge pull request #304 from kon14/patch-1 (diff)
downloadsway-3891a7c73fccfbd96f2cc36c3e079d88cc88465d.tar.gz
sway-3891a7c73fccfbd96f2cc36c3e079d88cc88465d.tar.zst
sway-3891a7c73fccfbd96f2cc36c3e079d88cc88465d.zip
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.
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c1
1 files changed, 0 insertions, 1 deletions
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) {
455 455
456 container->width = width; 456 container->width = width;
457 container->height = height; 457 container->height = height;
458 x = 0, y = 0;
459 for (i = 0; i < container->children->length; ++i) { 458 for (i = 0; i < container->children->length; ++i) {
460 swayc_t *child = container->children->items[i]; 459 swayc_t *child = container->children->items[i];
461 int gap = swayc_gap(child); 460 int gap = swayc_gap(child);