This commit is contained in:
Luca Capezzuto 2019-04-14 16:13:33 +01:00
parent fdf3d70470
commit db3003aa48
No known key found for this signature in database
GPG Key ID: EDCFE1C5B0CD8FB5
2 changed files with 4 additions and 4 deletions

2
lain

@ -1 +1 @@
Subproject commit 013654cd1af4bb69f31c1c641cdb24bd8b7c58df
Subproject commit 85db468376ff1d554127df1f0335c8a2f8c8c2be

View File

@ -742,11 +742,11 @@ client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", {raise = true})
end)
-- No border for maximized clients
-- No borders if only 1 non floating or maximised client visible
function border_adjust(c)
if c.maximized then -- no borders if only 1 client visible
if c.maximized or c.floating and #c.screen.clients == 1 then
c.border_width = 0
elseif #awful.screen.focused().clients > 1 then
elseif #c.screen.clients > 1 then
c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus
end