From 914a65e0982f9049b517a181f5956338e2bf1ed1 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Thu, 6 Oct 2022 12:39:36 -0400 Subject: [PATCH] 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. --- src/video/wayland/SDL_waylandwindow.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 0d06bb0fd..5d8be176c 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -474,7 +474,6 @@ UpdateWindowFullscreen(SDL_Window *window, SDL_bool fullscreen) wind->in_fullscreen_transition = SDL_TRUE; SDL_SetWindowFullscreen(window, wind->fullscreen_flags); wind->in_fullscreen_transition = SDL_FALSE; - SetMinMaxDimensions(window, SDL_FALSE); } } else { /* Don't change the fullscreen flags if the window is hidden or being hidden. */