mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-10 11:12:37 +08:00
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:
parent
ecb1f86f32
commit
1d9b8fadc1
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue