unbreak "client: stop using otable"

- Some tag icons were disappearing.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maarten Maathuis 2009-03-14 15:48:37 +01:00 committed by Julien Danjou
parent 6430738f17
commit 0f8c71e17f
1 changed files with 4 additions and 1 deletions

View File

@ -105,6 +105,7 @@ function label.all(t, args)
local bg_image local bg_image
local icon local icon
local bg_resize = false local bg_resize = false
local is_selected = false
if t.selected then if t.selected then
bg_color = bg_focus bg_color = bg_focus
fg_color = fg_focus fg_color = fg_focus
@ -117,11 +118,13 @@ function label.all(t, args)
if v == t then if v == t then
bg_image = capi.image(taglist_squares_sel) bg_image = capi.image(taglist_squares_sel)
bg_resize = taglist_squares_resize == "true" bg_resize = taglist_squares_resize == "true"
is_selected = true
break break
end end
end end
end end
else end
if not is_selected then
local cls = t:clients() local cls = t:clients()
if #cls > 0 and taglist_squares_unsel then if #cls > 0 and taglist_squares_unsel then
bg_image = capi.image(taglist_squares_unsel) bg_image = capi.image(taglist_squares_unsel)