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
rc.lua.save
theme-personal.lua theme-personal.lua
.luacheckrc .luacheckrc

View File

@ -754,18 +754,7 @@ client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", {raise = true}) c:emit_signal("request::activate", "mouse_enter", {raise = true})
end) end)
-- No borders if only 1 non floating or maximised client visible client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
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("unfocus", function(c) c.border_color = beautiful.border_normal 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: -- possible workaround for tag preservation when switching back to default screen: