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:
Uli Schlachter 2016-03-06 11:37:38 +01:00
parent 8fd801a6f4
commit 8b65bad3fc
1 changed files with 1 additions and 3 deletions

View File

@ -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(...)