tests: Fix tag:clients() in the shims
This commit is contained in:
parent
84a0ca56a2
commit
6cb54db6c1
|
@ -16,15 +16,19 @@ local function new_tag(_, args)
|
|||
awesome._forward_class(ret, tag)
|
||||
|
||||
ret.data = {}
|
||||
ret.name = args.name or "test"
|
||||
ret.name = tostring(args.name) or "test"
|
||||
ret.activated = true
|
||||
ret.selected = not has_selected_tag(args.screen)
|
||||
|
||||
function ret:clients(_) --TODO handle new
|
||||
local list = {}
|
||||
for _, c in ipairs(client.get()) do
|
||||
if c.screen == (ret.screen or screen[1]) then
|
||||
table.insert(list, c)
|
||||
if #c:tags() > 0 then
|
||||
for _, t in ipairs(c:tags()) do
|
||||
if t == ret then
|
||||
table.insert(list, c)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue