Skip to content

Commit

Permalink
Merge pull request #52374 from danielkariv/fix-macos-fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinou authored Sep 3, 2021
2 parents b658b27 + 52b114b commit 2cece71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/osx/display_server_osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2cece71

Please sign in to comment.