fix fullscreen issue on macOS

adds a call for resize event.

(cherry picked from commit 52b114bc78)
This commit is contained in:
Daniel Kariv 2021-09-03 14:35:28 +03:00 committed by Rémi Verschelde
parent 2cd626185c
commit ca2372164b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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 {