autotests: Stabilize X11WindowTest
Make a roundtrip to the x server to ensure that WM_STATE changes have been propagated. xcb_flush() is not good enough, there's still a race condition between the wm flushing its connection and the client reading window properties.
cc #214
Edited by Vlad Zahorodnii