Merge pull request #19 from TheRealFenrir/patch-1

Update icon_taglist.lua

Former-commit-id: 89a6a3fe79
Former-commit-id: 7f972187b2caf8ed1b1062cea81097144be2ceac
Former-commit-id: 92f22bd615cf90e27aac91a31e8abe40a78002b2
Former-commit-id: a4abb0067b9c6207c80cd73e84d005e3c4a01dca
This commit is contained in:
elenapan 2019-03-15 01:39:30 +02:00 committed by GitHub
commit 92007b2376

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]