Now gaps between windows and screen borders and gaps vetween windows and windows are the same.

This commit is contained in:
themarcq 2014-12-08 16:32:44 +01:00 committed by copycat-killer
parent b9c5e5a2cf
commit 2e266a88d9
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ local function tile_group(cls, wa, orientation, fact, group)
local i = c - group.first +1
geom[width] = size - global_border - (bw * 2)
geom[height] = math.floor(unused * fact[i] / total_fact) - (bw * 2)
geom[x] = group.coord + global_border + (useless_gap / 2)
geom[y] = coord + global_border + (useless_gap / 2)
geom[x] = group.coord + global_border
geom[y] = coord + global_border
coord = coord + geom[height]
unused = unused - geom[height]