Skip to content

Commit

Permalink
Fix index handling in a taglist example (awesomeWM#2810)
Browse files Browse the repository at this point in the history
  • Loading branch information
psychon authored and Elv13 committed Jul 3, 2019
1 parent f459296 commit fe37eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/examples/wibox/awidget/taglist/indexed.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ c2:tags(tags[1]) --DOC_HIDE

-- Add support for hover colors and an index label
create_callback = function(self, c3, index, objects) --luacheck: no unused args
self:get_children_by_id("index_role")[1].markup = "<b> "..index.." </b>"
self:get_children_by_id("index_role")[1].markup = "<b> "..c3.index.." </b>"

self:connect_signal("mouse::enter", function()
if self.bg ~= "#ff0000" then
Expand All @@ -94,7 +94,7 @@ c2:tags(tags[1]) --DOC_HIDE
end)
end,
update_callback = function(self, c3, index, objects) --luacheck: no unused args
self:get_children_by_id("index_role")[1].markup = "<b> "..index.." </b>"
self:get_children_by_id("index_role")[1].markup = "<b> "..c3.index.." </b>"
end,
},
buttons = taglist_buttons
Expand Down

0 comments on commit fe37eeb

Please sign in to comment.