sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit f7269684d018658c508f82529f5ca24c02dfd227
parent d99efb5f6f37d9ffbb6794df8964d2537f75eeda
Author: wil <william.barsse@gmail.com>
Date:   Sat,  7 Jan 2017 18:15:42 +0100

[fix] scale check to prevent un-necessary layouts was in the wrong place.

Diffstat:
Msway/layout.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sway/layout.c b/sway/layout.c @@ -1031,11 +1031,11 @@ void apply_horiz_layout(swayc_t *container, const double x, const double y, } scale += *old_width; } + scale = width / scale; // Resize windows double child_x = x; if (scale > 0.1) { - scale = width / scale; sway_log(L_DEBUG, "Arranging %p horizontally", container); swayc_t *focused = NULL; for (int i = start; i < end; ++i) { @@ -1084,10 +1084,11 @@ void apply_vert_layout(swayc_t *container, const double x, const double y, } scale += *old_height; } + scale = height / scale; + // Resize double child_y = y; if (scale > 0.1) { - scale = height / scale; sway_log(L_DEBUG, "Arranging %p vertically", container); swayc_t *focused = NULL; for (i = start; i < end; ++i) {