From 1d9b8fadc14a8fcbd38ddfccbbbfba383526b455 Mon Sep 17 00:00:00 2001 From: TheRealFenrir <33993642+TheRealFenrir@users.noreply.github.com> Date: Tue, 12 Mar 2019 10:49:11 -0600 Subject: [PATCH] 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: fd61869a88f509252281e21fd382275c5e999cc5 Former-commit-id: d332cdcdbaa353a4acc8b1a352972539418c20f3 Former-commit-id: cff9f7384dcb6e35ec41d9f3beeb6e99aed63adc Former-commit-id: 514c7b3bf67c335c7af00d36e15c476192beb264 --- config/awesome/noodle/icon_taglist.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/awesome/noodle/icon_taglist.lua b/config/awesome/noodle/icon_taglist.lua index 2878da4..425d6a4 100644 --- a/config/awesome/noodle/icon_taglist.lua +++ b/config/awesome/noodle/icon_taglist.lua @@ -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]