Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make fullscreen mode with XWayland a bit less broken, #587
assert( ret.width == glConfig.winWidth && ret.height == glConfig.winHeight ); in GLimp_GetCurState() triggered, because SDL_GetWindowSize(), which was used to set glConfig.winWidth/Height in GLimp_UpdateWindowSize(), returned different values than SDL_GetWindowDisplayMode(). Now use SDL_GetWindowDisplayMode() in GLimp_UpdateWindowSize() so it's at least consistent. However it seems like SDL_GetWindowSize() returns the correct values (IN THAT CASE), because with this change the mouse cursor doesn't work that well (in the specific case described above). In the end this is an SDL or Wayland bug or something, and I can only recommend not using "real" fullscreen mode with Wayland, as it's fake anyway (Wayland doesn't allow switching the display resolution, so you get a magically scaled borderless fullscreen window at best)
- Loading branch information