Remove useless iteration over screens
Signals on instances are also emitted on the class and thus we can just connect to the signal on the class here. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
8fd801a6f4
commit
8b65bad3fc
|
@ -848,9 +848,7 @@ capi.tag.add_signal("property::urgent")
|
||||||
capi.tag.add_signal("property::urgent_count")
|
capi.tag.add_signal("property::urgent_count")
|
||||||
|
|
||||||
capi.screen.add_signal("tag::history::update")
|
capi.screen.add_signal("tag::history::update")
|
||||||
for s = 1, capi.screen.count() do
|
capi.screen.connect_signal("tag::history::update", tag.history.update)
|
||||||
capi.screen[s]:connect_signal("tag::history::update", tag.history.update)
|
|
||||||
end
|
|
||||||
|
|
||||||
function tag.mt:__call(...)
|
function tag.mt:__call(...)
|
||||||
return tag.new(...)
|
return tag.new(...)
|
||||||
|
|
Loading…
Reference in New Issue