(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)
Get the window which currently has mouse focus.
void);SDL_Window * SDL_GetMouseFocus(
Returns the window with mouse focus.
This function is available since SDL 2.0.0.