X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/d4c3ced229f7ef0c25258b70e5f30ba1ad99f99d..09c71d8ee60e3779b31aa3c9e7af8db7c9602a73:/layout/uselesstile.lua diff --git a/layout/uselesstile.lua b/layout/uselesstile.lua index 78f7bec..e496500 100644 --- a/layout/uselesstile.lua +++ b/layout/uselesstile.lua @@ -88,6 +88,8 @@ local function tile_group(cls, wa, orientation, fact, group) top = false left = false + gap_factor = (useless_gap / 100) * 2 + if geom[y] == wa[y] then top = true end @@ -97,17 +99,17 @@ local function tile_group(cls, wa, orientation, fact, group) end if top then - geom[height] = geom[height] - 2 * useless_gap + geom[height] = geom[height] - (2 + gap_factor) * useless_gap geom[y] = geom[y] + useless_gap else - geom[height] = geom[height] - useless_gap + geom[height] = geom[height] - (1 + gap_factor) * useless_gap end if left then - geom[width] = geom[width] - 2 * useless_gap + geom[width] = geom[width] - (2 + gap_factor) * useless_gap geom[x] = geom[x] + useless_gap else - geom[width] = geom[width] - useless_gap + geom[width] = geom[width] - (1 + gap_factor) * useless_gap end end -- End of useless gap.