mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-06 19:19:47 +00:00
Make sure the mouse and keyboard focus is cleared when a window is hidden
(cherry picked from commit a16b241b8937db7701fce6c1f410e3af84f8c4e6)
This commit is contained in:
parent
e7761aec37
commit
37d1ab83c5
|
@ -356,6 +356,8 @@ void VIVANTE_HideWindow(_THIS, SDL_Window *window)
|
|||
SDL_WindowData *data = window->driverdata;
|
||||
vdkHideWindow(data->native_window);
|
||||
#endif
|
||||
SDL_SetMouseFocus(NULL);
|
||||
SDL_SetKeyboardFocus(NULL);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue