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:
Zebediah Figura 2019-11-01 10:52:03 -05:00 committed by Alexandre Julliard
parent b216587577
commit 2b29d02aa5
1 changed files with 1 additions and 0 deletions

View File

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