Closed slime73 closed 2 years ago
Just tried and this is reproduced on linux / x11 I think updating fullscreen is somehow asynchronous so calling SDL_SetWindowMinimumSize() will call
SDL_SetWindowSize(window, SDL_max(window->w, window->min_w), SDL_max(window->h, window->min_h));
which sets the current fullscreen size
https://github.com/libsdl-org/SDL/blob/main/src/video/SDL_video.c#L2351
Might be the same bug as #5055? EDIT: Possibly also #2095?
(The previously mentioned bug was an async thing, but a different async thing than I had in mind. I'll check this issue shortly.)
I have a report on my issue tracker here https://github.com/love2d/love/issues/1444 about a problem when
SDL_SetWindowFullscreen(window, 0)
is called. Our code was callingSetWindowMinimumSize
directly after that SetFullscreen call, which on Linux apparently prevents the window from downsizing to its original size after it was fullscreen.I don't have a Linux setup to test myself, but this code (according to the issue comments) might reproduce it:
The issue doesn't occur on macOS. If you're not able to reproduce it on Linux I can try to help narrow it down.