mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:54:14 +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:
parent
1368a4c20b
commit
6a1e2c1b89
|
@ -4294,7 +4294,6 @@ static void test_wndproc(void)
|
||||||
|
|
||||||
SetForegroundWindow(GetDesktopWindow());
|
SetForegroundWindow(GetDesktopWindow());
|
||||||
ShowWindow(device_window, SW_MINIMIZE);
|
ShowWindow(device_window, SW_MINIMIZE);
|
||||||
ShowWindow(device_window, SW_RESTORE);
|
|
||||||
ShowWindow(focus_window, SW_MINIMIZE);
|
ShowWindow(focus_window, SW_MINIMIZE);
|
||||||
ShowWindow(focus_window, SW_RESTORE);
|
ShowWindow(focus_window, SW_RESTORE);
|
||||||
SetForegroundWindow(focus_window);
|
SetForegroundWindow(focus_window);
|
||||||
|
@ -4339,7 +4338,6 @@ static void test_wndproc(void)
|
||||||
}
|
}
|
||||||
filter_messages = NULL;
|
filter_messages = NULL;
|
||||||
SetForegroundWindow(focus_window); /* For KDE. */
|
SetForegroundWindow(focus_window); /* For KDE. */
|
||||||
flush_events();
|
|
||||||
|
|
||||||
expect_messages = focus_loss_messages_filtered;
|
expect_messages = focus_loss_messages_filtered;
|
||||||
windowposchanged_received = 0;
|
windowposchanged_received = 0;
|
||||||
|
@ -4416,6 +4414,10 @@ static void test_wndproc(void)
|
||||||
ref = IDirect3DDevice9_Release(device);
|
ref = IDirect3DDevice9_Release(device);
|
||||||
ok(!ref, "Unexpected refcount %lu, i=%u.\n", ref, i);
|
ok(!ref, "Unexpected refcount %lu, i=%u.\n", ref, i);
|
||||||
|
|
||||||
|
ShowWindow(device_window, SW_RESTORE);
|
||||||
|
SetForegroundWindow(focus_window);
|
||||||
|
flush_events();
|
||||||
|
|
||||||
filter_messages = focus_window;
|
filter_messages = focus_window;
|
||||||
device_desc.device_window = device_window;
|
device_desc.device_window = device_window;
|
||||||
if (!(device = create_device(d3d9, focus_window, &device_desc)))
|
if (!(device = create_device(d3d9, focus_window, &device_desc)))
|
||||||
|
|
Loading…
Reference in a new issue