SDL 2.0.9
The title bar of a window is the bar that would have the minimize, maximize, and close buttons.
When you click the title bar of an SDL window to regain focus, the window may begin receiving keyboard events as expected but never mouse events (except for one mouse event at the time of the click).
- Call
SDL_SetRelativeMouseMode(SDL_TRUE)
- Alt+tab away from the SDL window
- Click the title bar of the SDL window