X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/bbd552f5bf82beb5cfd205010e1f32c7a6183c93..3a448b23d556bfddf25d53cf139a57a174446c5a:/layout/uselesstile.lua?pf=etc diff --git a/layout/uselesstile.lua b/layout/uselesstile.lua index bd365a8..877fad1 100644 --- a/layout/uselesstile.lua +++ b/layout/uselesstile.lua @@ -179,6 +179,8 @@ local function tile(p, orientation) -- get column number for other windows local ncol = math.min(tag.getncol(t), #cls_other) + if ncol == 0 then ncol = 1 end + -- split other windows to column groups local last_small_column = ncol - #cls_other % ncol local rows_min = math.floor(#cls_other / ncol)