From: luke bonham Date: Sat, 8 Nov 2014 11:44:23 +0000 (+0100) Subject: centerfair: ncol uselessgaps fixed X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/a8a898fabd6ab1e9add8c1235ab9ec0d78dadd8f centerfair: ncol uselessgaps fixed --- diff --git a/layout/centerfair.lua b/layout/centerfair.lua index e2ecb33..37507d3 100644 --- a/layout/centerfair.lua +++ b/layout/centerfair.lua @@ -91,7 +91,7 @@ function centerfair.arrange(p) -- Master client deserves a special treatement local g = {} - g.width = wa.width - (num_x - 1) * width - num_x * useless_gap + g.width = wa.width - (num_x - 1) * width - num_x * 2*useless_gap - 2 g.height = wa.height - 2*useless_gap - 2 g.x = offset_x + useless_gap + global_border g.y = offset_y + global_border @@ -142,7 +142,7 @@ function centerfair.arrange(p) g.width = width if useless_gap > 0 then - g.width = g.width - useless_gap/2 - 2 + g.width = g.width + useless_gap - 2 end for i = 1, (num_x-1) do