Merge pull request #476 from blueyed/taglist-handle-urgent-always
awful.widget.taglist: handle/display urgent property always
This commit is contained in:
commit
2ab0267a5e
|
@ -54,9 +54,9 @@ function taglist.taglist_label(t, args)
|
||||||
local bg_resize = false
|
local bg_resize = false
|
||||||
local is_selected = false
|
local is_selected = false
|
||||||
local cls = t:clients()
|
local cls = t:clients()
|
||||||
if sel then
|
|
||||||
if taglist_squares_sel then
|
if sel and taglist_squares_sel then
|
||||||
-- Check that the selected clients 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
|
||||||
|
@ -67,7 +67,6 @@ function taglist.taglist_label(t, args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
if #cls == 0 and t.selected and taglist_squares_sel_empty then
|
if #cls == 0 and t.selected and taglist_squares_sel_empty then
|
||||||
bg_image = taglist_squares_sel_empty
|
bg_image = taglist_squares_sel_empty
|
||||||
bg_resize = taglist_squares_resize == "true"
|
bg_resize = taglist_squares_resize == "true"
|
||||||
|
@ -87,14 +86,13 @@ function taglist.taglist_label(t, args)
|
||||||
if bg_empty then bg_color = bg_empty end
|
if bg_empty then bg_color = bg_empty end
|
||||||
if fg_empty then fg_color = fg_empty end
|
if fg_empty then fg_color = fg_empty end
|
||||||
end
|
end
|
||||||
if tag.getproperty(t, "urgent") then
|
|
||||||
if bg_urgent then bg_color = bg_urgent end
|
|
||||||
if fg_urgent then fg_color = fg_urgent end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
if t.selected then
|
if t.selected then
|
||||||
bg_color = bg_focus
|
bg_color = bg_focus
|
||||||
fg_color = fg_focus
|
fg_color = fg_focus
|
||||||
|
elseif tag.getproperty(t, "urgent") then
|
||||||
|
if bg_urgent then bg_color = bg_urgent end
|
||||||
|
if fg_urgent then fg_color = fg_urgent end
|
||||||
end
|
end
|
||||||
if not tag.getproperty(t, "icon_only") then
|
if not tag.getproperty(t, "icon_only") then
|
||||||
text = "<span font_desc='"..font.."'>"
|
text = "<span font_desc='"..font.."'>"
|
||||||
|
|
Loading…
Reference in New Issue