From 878ad785bcb121a7faea1fe66f48ed7c894af609 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 16 Jan 2022 18:41:14 -0400 Subject: [PATCH] Remove obsolete macOS window min size workaround. Fixes #1444. The reason for the SetWindowMinSize call after exiting fullscreen doesn't seem to be needed anymore, and it was breaking setFullscreen(false) in Linux. --- src/modules/window/sdl/Window.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/modules/window/sdl/Window.cpp b/src/modules/window/sdl/Window.cpp index c7103420d..798b606ed 100644 --- a/src/modules/window/sdl/Window.cpp +++ b/src/modules/window/sdl/Window.cpp @@ -723,11 +723,6 @@ bool Window::setFullscreen(bool fullscreen, Window::FullscreenType fstype) { SDL_GL_MakeCurrent(window, context); updateSettings(newsettings, true); - - // Apparently this gets un-set when we exit fullscreen (at least in OS X). - if (!fullscreen) - SDL_SetWindowMinimumSize(window, settings.minwidth, settings.minheight); - return true; }