mirror of https://github.com/encounter/SDL.git
wayland: Don't unset min/max values when entering fullscreen via a compositor event
If the compositor is entering fullscreen and hasn't removed any constraints itself, it's already too late at this point. Remove the unnecessary call. Restoring the limits when exiting fullscreen is still required, though, as they may have been removed when entering fullscreen via an SDL request.
This commit is contained in:
parent
69cf5fb0e1
commit
914a65e098
|
@ -474,7 +474,6 @@ UpdateWindowFullscreen(SDL_Window *window, SDL_bool fullscreen)
|
||||||
wind->in_fullscreen_transition = SDL_TRUE;
|
wind->in_fullscreen_transition = SDL_TRUE;
|
||||||
SDL_SetWindowFullscreen(window, wind->fullscreen_flags);
|
SDL_SetWindowFullscreen(window, wind->fullscreen_flags);
|
||||||
wind->in_fullscreen_transition = SDL_FALSE;
|
wind->in_fullscreen_transition = SDL_FALSE;
|
||||||
SetMinMaxDimensions(window, SDL_FALSE);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Don't change the fullscreen flags if the window is hidden or being hidden. */
|
/* Don't change the fullscreen flags if the window is hidden or being hidden. */
|
||||||
|
|
Loading…
Reference in New Issue