Merge branch 'mr/d3d9ex-test-fix' into 'master'

d3d9/tests: Flush events after minimizing and restoring focus window.

See merge request wine/wine!6821
This commit is contained in:
Rémi Bernon 2024-11-19 22:23:16 +00:00
commit 14685f341f

View file

@ -3145,7 +3145,9 @@ static void test_wndproc(void)
* immediately restores the device on activation. There are plenty of WM_WINDOWPOSCHANGED * immediately restores the device on activation. There are plenty of WM_WINDOWPOSCHANGED
* messages that are generated by ShowWindow, so testing for their absence is pointless. */ * messages that are generated by ShowWindow, so testing for their absence is pointless. */
ShowWindow(focus_window, SW_MINIMIZE); ShowWindow(focus_window, SW_MINIMIZE);
flush_events();
ShowWindow(focus_window, SW_RESTORE); ShowWindow(focus_window, SW_RESTORE);
flush_events();
SetForegroundWindow(focus_window); SetForegroundWindow(focus_window);
flush_events(); flush_events();