Fix minimizedcurrenttags filter with sticky clients

Sticky clients showed up in the tasklist without being minimized when using the minimizedcurrenttags filter.
This patch fixes that.

Signed-off-by: Björn Åström <bjoast@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Björn Åström 2012-12-13 03:30:37 +01:00 committed by Uli Schlachter
parent f6b43a1f1d
commit 6db7bdfcb9
1 changed files with 2 additions and 2 deletions

View File

@ -188,10 +188,10 @@ end
function tasklist.filter.minimizedcurrenttags(c, screen)
-- Only print client on the same screen as this widget
if c.screen ~= screen then return false end
-- Include sticky client
if c.sticky then return true end
-- Check client is minimized
if not c.minimized then return false end
-- Include sticky client
if c.sticky then return true end
local tags = tag.gettags(screen)
for k, t in ipairs(tags) do
-- Select only minimized clients