SDL_MouseMotionEvent.windowID

< The window with mouse focus, if any

struct SDL_MouseMotionEvent
SDL_WindowID windowID;

Meta