From 8153bfc1e3cff8a3100ce2e69d444811cd0aef85 Mon Sep 17 00:00:00 2001 From: Josh Timmer <0ohexxo0@gmail.com> Date: Wed, 9 Sep 2015 10:59:47 -0400 Subject: [PATCH] Fixed another 1 pixel discrepancy --- layout/uselesstile.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout/uselesstile.lua b/layout/uselesstile.lua index b94a74d..c769d58 100644 --- a/layout/uselesstile.lua +++ b/layout/uselesstile.lua @@ -188,6 +188,7 @@ local function tile(p, orientation) local rows_min = math.floor(#cls_other / ncol) local client_index = 1 + local used = 0 for i = 1, ncol do local position = transformation.flip and ncol - i + 1 or i local rows = i <= last_small_column and rows_min or rows_min + 1 @@ -200,6 +201,8 @@ local function tile(p, orientation) -- and tile local column_area = cut_column(other_area, ncol, position) + if i == ncol then column_area.width = other_area.width - used end + used = used + column_area.width if not data[i] then data[i] = {} end tile_column(wa, column_area, column, useless_gap, transformation, data[i])