From: Rémi Bernon <rbernon(a)codeweavers.com> No need to flush it after as activating the desktop window doesn't do anything on the X server side. --- dlls/user32/tests/win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 166653f0d2c..67504560b44 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -3766,6 +3766,7 @@ static void test_SetFocus(HWND hwnd) DestroyWindow( child2 ); DestroyWindow( child ); + flush_events( TRUE ); SetForegroundWindow( GetDesktopWindow() ); other = CreateWindowExA( 0, "static", NULL, WS_OVERLAPPEDWINDOW, 100, 100, 200, 200, 0, 0, NULL, NULL ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8133