Make sure the mouse and keyboard focus is cleared when a window is hidden

main
Sam Lantinga 2023-07-25 11:47:55 -07:00
parent 21692bc9a8
commit a16b241b89
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
/*****************************************************************************/