fix(lib.awful.taglist): multiple tag selection

multiple tag selection wasn't highlighting properly when *_occupied is set in theme table
This commit is contained in:
Evžen 2014-06-13 13:36:30 +02:00 committed by Uli Schlachter
parent 3c5a1d44e2
commit 7a812fe28d
1 changed files with 4 additions and 4 deletions

View File

@ -52,10 +52,6 @@ function taglist.taglist_label(t, args)
local bg_resize = false
local is_selected = false
local cls = t:clients()
if t.selected then
bg_color = bg_focus
fg_color = fg_focus
end
if sel then
if taglist_squares_sel then
-- Check that the selected clients is tagged with 't'.
@ -97,6 +93,10 @@ function taglist.taglist_label(t, args)
end
end
end
if t.selected then
bg_color = bg_focus
fg_color = fg_focus
end
if not tag.getproperty(t, "icon_only") then
if fg_color then
text = text .. "<span color='"..util.color_strip_alpha(fg_color).."'>" ..