From 0f8c71e17f287647dcf363be6954081b93af8ad3 Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Sat, 14 Mar 2009 15:48:37 +0100 Subject: [PATCH] unbreak "client: stop using otable" - Some tag icons were disappearing. Signed-off-by: Julien Danjou --- lib/awful/widget/taglist.lua.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in index 5f8f2642..e489fb8a 100644 --- a/lib/awful/widget/taglist.lua.in +++ b/lib/awful/widget/taglist.lua.in @@ -105,6 +105,7 @@ function label.all(t, args) local bg_image local icon local bg_resize = false + local is_selected = false if t.selected then bg_color = bg_focus fg_color = fg_focus @@ -117,11 +118,13 @@ function label.all(t, args) if v == t then bg_image = capi.image(taglist_squares_sel) bg_resize = taglist_squares_resize == "true" + is_selected = true break end end end - else + end + if not is_selected then local cls = t:clients() if #cls > 0 and taglist_squares_unsel then bg_image = capi.image(taglist_squares_unsel)