summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-03 14:48:34 +0200
committerGitHub <noreply@github.com>2021-09-03 14:48:34 +0200
commit2cece71b69a0f621199e175a2956855f0f1777c8 (patch)
treee24bcdbe4589d4f9222880d8fcdb2d5263036d5f
parentb658b275b16d6abd721e03923d835f951175cfd3 (diff)
parent52b114bc78959ea20546ba644d0ab272ab285403 (diff)
Merge pull request #52374 from danielkariv/fix-macos-fullscreen
-rw-r--r--platform/osx/display_server_osx.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/osx/display_server_osx.mm b/platform/osx/display_server_osx.mm
index 43b7d7c1e0..f037d75fbd 100644
--- a/platform/osx/display_server_osx.mm
+++ b/platform/osx/display_server_osx.mm
@@ -190,6 +190,8 @@ static NSCursor *_cursorFromSelector(SEL selector, SEL fallback = nil) {
[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 @@ static NSCursor *_cursorFromSelector(SEL selector, SEL fallback = nil) {
if (wd.on_top) {
[wd.window_object setLevel:NSFloatingWindowLevel];
}
+ // Force window resize event.
+ [self windowDidResize:notification];
}
- (void)windowDidChangeBackingProperties:(NSNotification *)notification {