diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-13 22:49:58 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-13 22:49:58 +0100 |
commit | 3891a7c73fccfbd96f2cc36c3e079d88cc88465d (patch) | |
tree | 36c5993fc50176701c65f558ecdd6998c82aad76 /sway | |
parent | e2cb5e5420d93516d0ca2cf815410215cd0a2f37 (diff) | |
download | sway-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.c | 1 |
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); |