Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch for SDL_VIDEO_CENTERED & OpenGL bug
Stephen Anthony to SDL Using SDL_VIDEO_CENTERED in Linux OpenGL mode issue an unwanted ConfigureNotify event *after* the SDL screen has already been resized. When going from a smaller to a larger screen, this event causes the mouse tracking to be clamped at the *smaller* screen size, even though that screen no longer exists. The fix is to not issue a ConfigureNotify when the window is moved because of the SDL_VIDEO_CENTERED environment variable. The included patch fixes this bug. It seems the hints must be set before the window is moved.
- Loading branch information