Module: wine
Branch: stable
Commit: 21734aa3c07af9a4bb5adbb587de7b38500afebb
URL: https://source.winehq.org/git/wine.git/?a=commit;h=21734aa3c07af9a4bb5adbb5…
Author: Zebediah Figura <z.figura12(a)gmail.com>
Date: Fri Nov 1 10:52:03 2019 -0500
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(a)gmail.com>
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
(cherry picked from commit 2b29d02aa5ba65465b4adc017cdca9a8932b0dbe)
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org>
---
dlls/d3d8/tests/device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index d0e840a912..1a72485719 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -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();