1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

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

By backporting the corresponding window management tweaks from the
d3d8:device test.
This commit is contained in:
Alexandre Julliard 2022-12-21 15:55:59 +01:00
parent 1368a4c20b
commit 6a1e2c1b89

View File

@ -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)))