Update icon_taglist.lua

-removed use of deprecated function awful.tag.getproperty.
-check if the tag is selected, rather than checking if the tag matches the screen's selected_tag. This allows multiple tags to be selected (and use their selected icons correctly).

Former-commit-id: fd61869a88
Former-commit-id: d332cdcdbaa353a4acc8b1a352972539418c20f3
Former-commit-id: cff9f7384dcb6e35ec41d9f3beeb6e99aed63adc
Former-commit-id: 514c7b3bf67c335c7af00d36e15c476192beb264
This commit is contained in:
TheRealFenrir 2019-03-12 10:49:11 -06:00 committed by GitHub
parent ecb1f86f32
commit 1d9b8fadc1

View file

@ -65,9 +65,9 @@ local function update_widget()
if s.tags[i] then
tag_clients = s.tags[i]:clients()
end
if s.tags[i] == s.selected_tag then
if s.tags[i] and s.tags[i].selected then
tag_icons[i].image = beautiful.taglist_icons_focused[i]
elseif awful.tag.getproperty(s.tags[i], "urgent") then
elseif s.tags[i] and s.tags[i].urgent then
tag_icons[i].image = beautiful.taglist_icons_urgent[i]
elseif tag_clients and #tag_clients > 0 then
tag_icons[i].image = beautiful.taglist_icons_occupied[i]