#261: added screen arrange signal too

This commit is contained in:
Luca Capezzuto 2019-04-15 11:05:10 +01:00
parent db3003aa48
commit 41be59ba27
No known key found for this signature in database
GPG Key ID: EDCFE1C5B0CD8FB5
1 changed files with 12 additions and 0 deletions

View File

@ -227,6 +227,18 @@ screen.connect_signal("property::geometry", function(s)
gears.wallpaper.maximized(wallpaper, s, true)
end
end)
-- No borders when rearranging only 1 non-floating or maximized client
screen.connect_signal("arrange", function (s)
local only_one = #s.tiled_clients == 1
for _, c in pairs(s.clients) do
if only_one and not c.floating or c.maximized then
c.border_width = 0
else
c.border_width = beautiful.border_width
end
end
end)
-- Create a wibox for each screen and add it
awful.screen.connect_for_each_screen(function(s) beautiful.at_screen_connect(s) end)
-- }}}