aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-13 22:49:58 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-13 22:49:58 +0100
commit3891a7c73fccfbd96f2cc36c3e079d88cc88465d (patch)
tree36c5993fc50176701c65f558ecdd6998c82aad76 /sway
parente2cb5e5420d93516d0ca2cf815410215cd0a2f37 (diff)
downloadsway-3891a7c73fccfbd96f2cc36c3e079d88cc88465d.tar.xz
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')
-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) {
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);