Remove another useless iteration over screens
Any signal on a screen instance is also emitted on the screen class, so the here can just connect to the screen class. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
8b65bad3fc
commit
dd78f8e6f2
|
@ -238,14 +238,8 @@ capi.tag.connect_signal("property::useless_gap", arrange_tag)
|
|||
capi.tag.connect_signal("property::master_fill_policy", arrange_tag)
|
||||
capi.tag.connect_signal("tagged", arrange_tag)
|
||||
|
||||
for s = 1, capi.screen.count() do
|
||||
capi.screen[s]:connect_signal("property::workarea", function(screen)
|
||||
layout.arrange(screen)
|
||||
end)
|
||||
capi.screen[s]:connect_signal("padding", function (screen)
|
||||
layout.arrange(screen)
|
||||
end)
|
||||
end
|
||||
capi.screen.connect_signal("property::workarea", layout.arrange)
|
||||
capi.screen.connect_signal("padding", layout.arrange)
|
||||
|
||||
capi.client.connect_signal("raised", function(c) layout.arrange(c.screen) end)
|
||||
capi.client.connect_signal("lowered", function(c) layout.arrange(c.screen) end)
|
||||
|
|
Loading…
Reference in New Issue