From a16b241b8937db7701fce6c1f410e3af84f8c4e6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 25 Jul 2023 11:47:55 -0700 Subject: [PATCH] Make sure the mouse and keyboard focus is cleared when a window is hidden --- src/video/vivante/SDL_vivantevideo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/vivante/SDL_vivantevideo.c b/src/video/vivante/SDL_vivantevideo.c index 89faed11c..06c69dd34 100644 --- a/src/video/vivante/SDL_vivantevideo.c +++ b/src/video/vivante/SDL_vivantevideo.c @@ -343,6 +343,8 @@ void VIVANTE_HideWindow(SDL_VideoDevice *_this, SDL_Window *window) SDL_WindowData *data = window->driverdata; vdkHideWindow(data->native_window); #endif + SDL_SetMouseFocus(NULL); + SDL_SetKeyboardFocus(NULL); } /*****************************************************************************/