awful: check for bg,fg focus (FS#304)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c79d9ef991
commit
587302358c
|
@ -1373,7 +1373,11 @@ local function widget_tasklist_label_common(c, args)
|
||||||
name = escape(c.name) or ""
|
name = escape(c.name) or ""
|
||||||
end
|
end
|
||||||
if capi.client.focus == c then
|
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> "
|
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
|
elseif c.urgent and bg_urgent and fg_urgent then
|
||||||
text = text .. " <bg color='"..bg_urgent.."'/><span color='"..fg_urgent.."'>"..name.."</span> "
|
text = text .. " <bg color='"..bg_urgent.."'/><span color='"..fg_urgent.."'>"..name.."</span> "
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue