Commit 6a1e2c1b authored by Alexandre Julliard's avatar Alexandre Julliard

d3d9/tests: Fix some activation/focus test failures.

By backporting the corresponding window management tweaks from the d3d8:device test.
parent 1368a4c2
......@@ -4294,7 +4294,6 @@ static void test_wndproc(void)
SetForegroundWindow(GetDesktopWindow());
ShowWindow(device_window, SW_MINIMIZE);
ShowWindow(device_window, SW_RESTORE);
ShowWindow(focus_window, SW_MINIMIZE);
ShowWindow(focus_window, SW_RESTORE);
SetForegroundWindow(focus_window);
......@@ -4339,7 +4338,6 @@ static void test_wndproc(void)
}
filter_messages = NULL;
SetForegroundWindow(focus_window); /* For KDE. */
flush_events();
expect_messages = focus_loss_messages_filtered;
windowposchanged_received = 0;
......@@ -4416,6 +4414,10 @@ static void test_wndproc(void)
ref = IDirect3DDevice9_Release(device);
ok(!ref, "Unexpected refcount %lu, i=%u.\n", ref, i);
ShowWindow(device_window, SW_RESTORE);
SetForegroundWindow(focus_window);
flush_events();
filter_messages = focus_window;
device_desc.device_window = device_window;
if (!(device = create_device(d3d9, focus_window, &device_desc)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment