SDL_SetWindowSize should probably not be used at all if the window is resizable
This is mostly relevant to the wip branch as of writing this. I'm not sure this can be reproduced on Windows.
To explain the problem in question:
- A resizable non-fullscreen window may be created, and its size might be set to be relatively large by the user; Say, the desktop resolution.
- The window manager, say in Ubuntu, may decide to make the window maximized as a consequence.
- Therefore, when the user attempts to set a lower window resolution later, SDL_SetWindowSize will fail, as the window is maximized.
- Despite this, SDL_GetWindowSize may still report the user's last choice afterwards, rather than the actual window dimensions.
This issue might be related, albeit it's for macOS: https://github.com/libsdl-org/SDL/issues/3217