From 67faf52bab188fc0be38d2df3907088e1848f418 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 9 Oct 2015 20:59:18 +0200 Subject: [PATCH] Properly update multiple taglists My recent refactoring accidentally made the taglist only connect to the signal for the first screen on which a taglist is created. This commit fixes the code so that it connects for all screens. Fixes https://github.com/awesomeWM/awesome/issues/500 Signed-off-by: Uli Schlachter --- lib/awful/widget/taglist.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/awful/widget/taglist.lua b/lib/awful/widget/taglist.lua index 44e6e0fc6..e34782ad2 100644 --- a/lib/awful/widget/taglist.lua +++ b/lib/awful/widget/taglist.lua @@ -185,14 +185,14 @@ function taglist.new(screen, filter, buttons, style, update_function, base_widge local ut = function (t) return u(tag.getscreen(t)) end capi.client.connect_signal("focus", uc) capi.client.connect_signal("unfocus", uc) - tag.attached_connect_signal(screen, "property::selected", ut) - tag.attached_connect_signal(screen, "property::icon", ut) - tag.attached_connect_signal(screen, "property::hide", ut) - tag.attached_connect_signal(screen, "property::name", ut) - tag.attached_connect_signal(screen, "property::activated", ut) - tag.attached_connect_signal(screen, "property::screen", ut) - tag.attached_connect_signal(screen, "property::index", ut) - tag.attached_connect_signal(screen, "property::urgent", ut) + tag.attached_connect_signal(nil, "property::selected", ut) + tag.attached_connect_signal(nil, "property::icon", ut) + tag.attached_connect_signal(nil, "property::hide", ut) + tag.attached_connect_signal(nil, "property::name", ut) + tag.attached_connect_signal(nil, "property::activated", ut) + tag.attached_connect_signal(nil, "property::screen", ut) + tag.attached_connect_signal(nil, "property::index", ut) + tag.attached_connect_signal(nil, "property::urgent", ut) capi.client.connect_signal("property::screen", function(c, old_screen) u(c.screen) u(old_screen)