Fix the test that the previous commit added
There was a race with autofocus. To overcome this, add another step that tests that moving the client back to a visible tag and focusing it updates _NET_CURRENT_DESKTOP. Afterwards, we kill the client so that it can no longer interfere. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
66cadf5af8
commit
7830cf076b
|
@ -66,10 +66,16 @@ local steps = {
|
||||||
c:move_to_tag(tags[4])
|
c:move_to_tag(tags[4])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
client.focus = c
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
wait_for_current_desktop(tags[4]),
|
||||||
|
|
||||||
-- Undo autofocus
|
-- Killing the client means the first selected tag counts
|
||||||
|
function()
|
||||||
assert(client.focus == c)
|
assert(client.focus == c)
|
||||||
client.focus = nil
|
c:kill()
|
||||||
|
c = nil
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
wait_for_current_desktop(tags[3]),
|
wait_for_current_desktop(tags[3]),
|
||||||
|
|
Loading…
Reference in New Issue