From ca2372164be14328275da03d164687547fd8d229 Mon Sep 17 00:00:00 2001 From: Daniel Kariv <38776931+danielkariv@users.noreply.github.com> Date: Fri, 3 Sep 2021 14:35:28 +0300 Subject: [PATCH] fix fullscreen issue on macOS adds a call for resize event. (cherry picked from commit 52b114bc78959ea20546ba644d0ab272ab285403) --- platform/osx/os_osx.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 3b435b55310..e4df51f983a 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -306,6 +306,8 @@ static NSCursor *cursorFromSelector(SEL selector, SEL fallback = nil) { [OS_OSX::singleton->window_object setContentMinSize:NSMakeSize(0, 0)]; [OS_OSX::singleton->window_object setContentMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; + // Force window resize event. + [self windowDidResize:notification]; } - (void)windowDidExitFullScreen:(NSNotification *)notification { @@ -325,6 +327,9 @@ static NSCursor *cursorFromSelector(SEL selector, SEL fallback = nil) { if (OS_OSX::singleton->on_top) [OS_OSX::singleton->window_object setLevel:NSFloatingWindowLevel]; + + // Force window resize event. + [self windowDidResize:notification]; } - (void)windowDidChangeBackingProperties:(NSNotification *)notification {