From e4be0017ff8338aefdfbae10a616c001029f68ca Mon Sep 17 00:00:00 2001 From: Felix Bier Date: Wed, 30 Jan 2013 09:23:28 +0100 Subject: [PATCH] Incorrect calculation of unused size (FS#1108) Signed-off-by: Felix Bier Signed-off-by: Uli Schlachter --- lib/awful/layout/suit/tile.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/layout/suit/tile.lua.in b/lib/awful/layout/suit/tile.lua.in index 9e62e863..8c3b2c71 100644 --- a/lib/awful/layout/suit/tile.lua.in +++ b/lib/awful/layout/suit/tile.lua.in @@ -67,7 +67,7 @@ local function tile_group(cls, wa, orientation, fact, group) coord = coord + geom[height] + cls[c].border_width * 2 unused = unused - geom[height] - cls[c].border_width * 2 total_fact = total_fact - fact[i] - used_size = math.max(used_size, geom[width]) + cls[c].border_width * 2 + used_size = math.max(used_size, geom[width] + cls[c].border_width * 2) end return used_size