1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

Fix borderless for max layout

This commit is contained in:
Tourniquet 2013-11-04 18:26:45 +01:00
parent a1d506eff5
commit f252ecd768

View file

@ -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)