awful: bugfix in label
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
20af8bdfca
commit
044702569a
|
@ -937,12 +937,15 @@ function P.widget.taglist.label.all(t, bg_focus, fg_focus, bg_urgent, fg_urgent)
|
||||||
background = "resize=\"true\" image=\"@AWESOME_ICON_PATH@/taglist/squarefw.png\""
|
background = "resize=\"true\" image=\"@AWESOME_ICON_PATH@/taglist/squarefw.png\""
|
||||||
elseif bg_urgent and fg_urgent then
|
elseif bg_urgent and fg_urgent then
|
||||||
for k, c in pairs(client.get()) do
|
for k, c in pairs(client.get()) do
|
||||||
if c.urgent and c:istagged(t) then
|
if c:istagged(t) then
|
||||||
|
background = "resize=\"true\" image=\"@AWESOME_ICON_PATH@/taglist/squarew.png\""
|
||||||
|
if c.urgent then
|
||||||
bg_color = bg_urgent
|
bg_color = bg_urgent
|
||||||
fg_color = fg_urgent
|
fg_color = fg_urgent
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
if bg_color and fg_color then
|
if bg_color and fg_color then
|
||||||
text = "<bg "..background.." color='"..bg_color.."'/> <span color='"..fg_color.."'>"..P.escape(t.name).."</span> "
|
text = "<bg "..background.." color='"..bg_color.."'/> <span color='"..fg_color.."'>"..P.escape(t.name).."</span> "
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue