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:
parent
f6b43a1f1d
commit
6db7bdfcb9
|
@ -188,10 +188,10 @@ end
|
||||||
function tasklist.filter.minimizedcurrenttags(c, screen)
|
function tasklist.filter.minimizedcurrenttags(c, screen)
|
||||||
-- Only print client on the same screen as this widget
|
-- Only print client on the same screen as this widget
|
||||||
if c.screen ~= screen then return false end
|
if c.screen ~= screen then return false end
|
||||||
-- Include sticky client
|
|
||||||
if c.sticky then return true end
|
|
||||||
-- Check client is minimized
|
-- Check client is minimized
|
||||||
if not c.minimized then return false end
|
if not c.minimized then return false end
|
||||||
|
-- Include sticky client
|
||||||
|
if c.sticky then return true end
|
||||||
local tags = tag.gettags(screen)
|
local tags = tag.gettags(screen)
|
||||||
for k, t in ipairs(tags) do
|
for k, t in ipairs(tags) do
|
||||||
-- Select only minimized clients
|
-- Select only minimized clients
|
||||||
|
|
Loading…
Reference in New Issue