mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 11:32:32 +00:00
Fix borderless for max layout
This commit is contained in:
parent
a1d506eff5
commit
f252ecd768
|
@ -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))
|
local layout = awful.layout.getname(awful.layout.get(s))
|
||||||
|
|
||||||
if #clients > 0 then -- Fine grained borders and floaters control
|
if #clients > 0 then -- Fine grained borders and floaters control
|
||||||
|
local i = 1
|
||||||
for _, c in pairs(clients) do -- Floaters always have borders
|
for _, c in pairs(clients) do -- Floaters always have borders
|
||||||
if awful.client.floating.get(c) or layout == "floating" then
|
if awful.client.floating.get(c) or layout == "floating" then
|
||||||
c.border_width = beautiful.border_width
|
c.border_width = beautiful.border_width
|
||||||
|
|
||||||
-- No borders with only one visible client
|
-- No borders with only one visible client
|
||||||
elseif #clients == 1 or layout == "max" then
|
elseif #clients == 1 or layout == "max" then
|
||||||
clients[1].border_width = 0
|
clients[i].border_width = 0
|
||||||
awful.client.moveresize(0, 0, 2, 2, clients[1])
|
awful.client.moveresize(0, 0, 2, 2, clients[i])
|
||||||
else
|
else
|
||||||
c.border_width = beautiful.border_width
|
c.border_width = beautiful.border_width
|
||||||
end
|
end
|
||||||
|
i = i + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue