minor: taglist.taglist_label: join if / remove indent

This commit is contained in:
Daniel Hahler 2015-09-25 01:29:00 +02:00
parent f4d6011f23
commit 116c90c8d8
1 changed files with 9 additions and 11 deletions

View File

@ -55,17 +55,15 @@ function taglist.taglist_label(t, args)
local is_selected = false local is_selected = false
local cls = t:clients() local cls = t:clients()
if sel then if sel and taglist_squares_sel then
if taglist_squares_sel then -- Check that the selected client is tagged with 't'.
-- Check that the selected client is tagged with 't'. local seltags = sel:tags()
local seltags = sel:tags() for _, v in ipairs(seltags) do
for _, v in ipairs(seltags) do if v == t then
if v == t then bg_image = taglist_squares_sel
bg_image = taglist_squares_sel bg_resize = taglist_squares_resize == "true"
bg_resize = taglist_squares_resize == "true" is_selected = true
is_selected = true break
break
end
end end
end end
end end