From a4a9d284613139d4b8eca1185646476494167e96 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 22 Sep 2021 09:56:06 -0700 Subject: [PATCH] You may need to wait a bit for SDL_WarpMouseInWindow() to complete --- test/testautomation_mouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testautomation_mouse.c b/test/testautomation_mouse.c index ee4124266..b99afc1ce 100644 --- a/test/testautomation_mouse.c +++ b/test/testautomation_mouse.c @@ -527,6 +527,7 @@ mouse_getMouseFocus(void *arg) SDLTest_AssertPass("SDL_WarpMouseInWindow(...,%i,%i)", x, y); /* Pump events to update focus state */ + SDL_Delay(100); SDL_PumpEvents(); SDLTest_AssertPass("SDL_PumpEvents()");