Test 517 was sometimes failing because the command to reset the test
generates a focus event which was not being properly ignored.
Now the correct event should always be tested.
# reset and try again
$focus = AnyEvent->condvar;
-cmd 'workspace ws-left; move right';
+cmd 'workspace ws-left';
+$focus->recv;
+
+$focus = AnyEvent->condvar;
+cmd 'move right';
$event = $focus->recv;
ok($event, 'moving from workspace with one window triggered focus ipc event');
is($event->{current}->{name}, 'ws-right', 'focus event gave the right workspace');