Fix test 158

Patch status: superseded

Patch by Tony Crisci

Long description:

Test 158 was not properly testing the absense of the WM_TAKE_FOCUS
ClientMessage because of a bad assumption about how sync_with_i3
presently works.
This fix implements a function that should work in the way it was
previously intended.