diff --git a/awesome/components/widgets/task-list.lua b/awesome/components/widgets/task-list.lua index e636c2a..c3d895a 100644 --- a/awesome/components/widgets/task-list.lua +++ b/awesome/components/widgets/task-list.lua @@ -195,18 +195,18 @@ local tasklist_buttons = awful.util.table.join( local filter = function(c, _) - local tags = c.screen.tags - for _, t in ipairs(tags) do - if t.selected then - local ctags = c:tags() - for _, v in ipairs(ctags) do - if v == t and client.focus and c.screen == client.focus.screen then - return true - end + local tags = c.screen.tags + for _, t in ipairs(tags) do + if t.selected then + local ctags = c:tags() + for _, v in ipairs(ctags) do + if v == t and c.screen == client.focus.screen then + return true end - end - end - return false + end + end + end + return false end