mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-06 09:07:05 +00:00
Make sure the mouse and keyboard focus is cleared when a window is hidden
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user