Alexandre Julliard : d3d8/tests: Make sure that the window has focus before testing loss of focus.