layouts/tile: completely fix client borders

Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2010-05-29 00:31:52 +02:00 committed by Julien Danjou
parent 752f0225d2
commit f890aa392c
1 changed files with 3 additions and 3 deletions

View File

@ -63,10 +63,10 @@ local function tile_group(cls, wa, orientation, fact, group)
geom[x] = group.coord
geom[y] = coord
geom = cls[c]:geometry(geom)
coord = coord + geom[height]
unused = unused - geom[height]
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])
used_size = math.max(used_size, geom[width]) + cls[c].border_width * 2
end
return used_size