From f252ecd768827c1b2873b42519770e2697cc7658 Mon Sep 17 00:00:00 2001 From: Tourniquet Date: Mon, 4 Nov 2013 18:26:45 +0100 Subject: [PATCH] Fix borderless for max layout --- rc.lua.multicolor | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc.lua.multicolor b/rc.lua.multicolor index a09181d..2bd882b 100755 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -692,17 +692,19 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () local layout = awful.layout.getname(awful.layout.get(s)) if #clients > 0 then -- Fine grained borders and floaters control + local i = 1 for _, c in pairs(clients) do -- Floaters always have borders if awful.client.floating.get(c) or layout == "floating" then c.border_width = beautiful.border_width -- No borders with only one visible client elseif #clients == 1 or layout == "max" then - clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) + clients[i].border_width = 0 + awful.client.moveresize(0, 0, 2, 2, clients[i]) else c.border_width = beautiful.border_width end + i = i + 1 end end end)