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>
(cherry picked from commit 2b29d02aa5)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Zebediah Figura 2019-11-01 10:52:03 -05:00 committed by Michael Stefaniuc
parent e9ee9a9149
commit 21734aa3c0
1 changed files with 1 additions and 0 deletions

View File

@ -3055,6 +3055,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();