awful: check for bg,fg focus (FS#304)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-07 23:29:24 +02:00
parent c79d9ef991
commit 587302358c
1 changed files with 5 additions and 1 deletions

View File

@ -1373,7 +1373,11 @@ local function widget_tasklist_label_common(c, args)
name = escape(c.name) or ""
end
if capi.client.focus == c then
if bg_focus and fg_focus then
text = text .. " <bg color='"..bg_focus.."'/><span color='"..fg_focus.."'>"..name.."</span> "
else
text = text .. " "..name.." "
end
elseif c.urgent and bg_urgent and fg_urgent then
text = text .. " <bg color='"..bg_urgent.."'/><span color='"..fg_urgent.."'>"..name.."</span> "
else