[PATCH 2/2] d3d8/tests: Make sure that the window has focus before testing loss of focus.