Alexandre Julliard : d3d8/tests: Make sure that the window has focus before testing loss of focus.
Module: wine Branch: master Commit: 9761191f1c3aa7714204da470db1c8ef5dedc5c2 URL: https://gitlab.winehq.org/wine/wine/-/commit/9761191f1c3aa7714204da470db1c8e... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Dec 20 17:44:07 2022 +0100 d3d8/tests: Make sure that the window has focus before testing loss of focus. --- dlls/d3d8/tests/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c index 9dcdcab066f..59532d0a208 100644 --- a/dlls/d3d8/tests/device.c +++ b/dlls/d3d8/tests/device.c @@ -3305,6 +3305,7 @@ static void test_wndproc(void) skip("Failed to create a D3D device, skipping tests.\n"); goto done; } + SetForegroundWindow(focus_window); /* make sure that the window has focus */ filter_messages = NULL;
participants (1)
-
Alexandre Julliard