mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 22:59:49 +00:00
Only restore desktop mode when hiding a window if that window was fullscreen
This commit is contained in:
@@ -2549,7 +2549,9 @@ int SDL_HideWindow(SDL_Window *window)
|
||||
}
|
||||
|
||||
window->is_hiding = SDL_TRUE;
|
||||
SDL_UpdateFullscreenMode(window, SDL_FALSE);
|
||||
if (window->flags & SDL_WINDOW_FULLSCREEN) {
|
||||
SDL_UpdateFullscreenMode(window, SDL_FALSE);
|
||||
}
|
||||
|
||||
if (_this->HideWindow) {
|
||||
_this->HideWindow(_this, window);
|
||||
|
||||
Reference in New Issue
Block a user