From 8b65bad3fcfa5a2042edb007fdf05e6ee85fdd4d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 6 Mar 2016 11:37:38 +0100 Subject: [PATCH] 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 --- lib/awful/tag.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/awful/tag.lua b/lib/awful/tag.lua index b24860b48..9d04ba4d8 100644 --- a/lib/awful/tag.lua +++ b/lib/awful/tag.lua @@ -848,9 +848,7 @@ capi.tag.add_signal("property::urgent") capi.tag.add_signal("property::urgent_count") capi.screen.add_signal("tag::history::update") -for s = 1, capi.screen.count() do - capi.screen[s]:connect_signal("tag::history::update", tag.history.update) -end +capi.screen.connect_signal("tag::history::update", tag.history.update) function tag.mt:__call(...) return tag.new(...)