summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-12-13 17:01:16 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-12-13 17:01:16 -0500
commit0b6949df08a8200fef4c0d93cd27c929933d53bf (patch)
treec30a28436fbcbcda1236bf54689bc45e757f77f8
parentNotify IPC on workspace changes more frequently (diff)
parentDon't reset x,y position before use. (diff)
downloadsway-0b6949df08a8200fef4c0d93cd27c929933d53bf.tar.gz
sway-0b6949df08a8200fef4c0d93cd27c929933d53bf.tar.zst
sway-0b6949df08a8200fef4c0d93cd27c929933d53bf.zip
Merge pull request #305 from mikkeloscar/fix-window-start
Don't reset x,y position before use.
-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);