1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 11:12:31 +00:00

remove client.property::maximized signal; closes #261

Signed-off-by: Luca Capezzuto <luca.capezzuto@soton.ac.uk>
This commit is contained in:
Luca Capezzuto 2019-04-16 14:14:16 +01:00
parent 41be59ba27
commit 619101a1b2
No known key found for this signature in database
GPG key ID: EDCFE1C5B0CD8FB5
2 changed files with 2 additions and 12 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
rc.lua
rc.lua.save
theme-personal.lua
.luacheckrc

View file

@ -754,18 +754,7 @@ client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", {raise = true})
end)
-- No borders if only 1 non floating or maximised client visible
function border_adjust(c)
if c.maximized or c.floating and #c.screen.clients == 1 then
c.border_width = 0
elseif #c.screen.clients > 1 then
c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus
end
end
client.connect_signal("property::maximized", border_adjust)
client.connect_signal("focus", border_adjust)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- possible workaround for tag preservation when switching back to default screen: