Skip to content

Commit 8a8767f

Browse files
author
David Fuhrmann
committed
macosx: already set fullscreen to no when fullscreen exit animation is started
close #11061
1 parent c877b35 commit 8a8767f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gui/macosx/Windows.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ - (void)leaveFullscreenWithAnimation:(BOOL)b_animation
10741074
}
10751075

10761076
b_in_fullscreen_transition = YES;
1077+
[self setFullscreen:NO];
10771078

10781079
[self setAlphaValue: 0.0];
10791080
[self orderFront: self];
@@ -1119,7 +1120,6 @@ - (void)leaveFullscreenWithAnimation:(BOOL)b_animation
11191120

11201121
- (void)hasEndedFullscreen
11211122
{
1122-
[self setFullscreen:NO];
11231123
b_in_fullscreen_transition = NO;
11241124

11251125
/* This function is private and should be only triggered at the end of the fullscreen change animation */

0 commit comments

Comments
 (0)