From 52b114bc78959ea20546ba644d0ab272ab285403 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. --- platform/osx/display_server_osx.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/osx/display_server_osx.mm b/platform/osx/display_server_osx.mm index 43b7d7c1e000..f037d75fbd79 100644 --- a/platform/osx/display_server_osx.mm +++ b/platform/osx/display_server_osx.mm @@ -190,6 +190,8 @@ - (void)windowDidEnterFullScreen:(NSNotification *)notification { [wd.window_object setContentMinSize:NSMakeSize(0, 0)]; [wd.window_object setContentMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; + // Force window resize event. + [self windowDidResize:notification]; } - (void)windowDidExitFullScreen:(NSNotification *)notification { @@ -217,6 +219,8 @@ - (void)windowDidExitFullScreen:(NSNotification *)notification { if (wd.on_top) { [wd.window_object setLevel:NSFloatingWindowLevel]; } + // Force window resize event. + [self windowDidResize:notification]; } - (void)windowDidChangeBackingProperties:(NSNotification *)notification {