d3d8/tests: Flush events after sending SC_MAXIMIZE.
For some reason, on fvwm2 sometimes focus_window will be restored and activated between the subsequent call to SetForegroundWindow() and the next call to ShowWindow(SW_RESTORE), causing the next test to fail. Flushing first seems to reliably work around this. Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b216587577
commit
2b29d02aa5
|
@ -3151,6 +3151,7 @@ static void test_wndproc(void)
|
|||
ok(!expect_messages->message, "Expected message %#x for window %#x, but didn't receive it.\n",
|
||||
expect_messages->message, expect_messages->window);
|
||||
expect_messages = NULL;
|
||||
flush_events();
|
||||
SetForegroundWindow(GetDesktopWindow());
|
||||
flush_events();
|
||||
|
||||
|
|
Loading…
Reference in New Issue