X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/c477cc64fd484f9cc1e1c78e9b22e1f099e75838..5e8b6394ff09c3cf0b7f7d6bf61a2174efe87359:/layout/uselesstile.lua?ds=sidebyside 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])