|
@@ -689,9 +689,6 @@ void NativeWindowMac::DetachChildren() {
|
|
|
}
|
|
|
|
|
|
void NativeWindowMac::SetFullScreen(bool fullscreen) {
|
|
|
- if (!has_frame() && !HasStyleMask(NSWindowStyleMaskTitled))
|
|
|
- return;
|
|
|
-
|
|
|
// [NSWindow -toggleFullScreen] is an asynchronous operation, which means
|
|
|
// that it's possible to call it while a fullscreen transition is currently
|
|
|
// in process. This can create weird behavior (incl. phantom windows),
|
|
@@ -724,7 +721,8 @@ void NativeWindowMac::SetFullScreen(bool fullscreen) {
|
|
|
? FullScreenTransitionState::kEntering
|
|
|
: FullScreenTransitionState::kExiting;
|
|
|
|
|
|
- [window_ toggleFullScreenMode:nil];
|
|
|
+ if (![window_ toggleFullScreenMode:nil])
|
|
|
+ fullscreen_transition_state_ = FullScreenTransitionState::kNone;
|
|
|
}
|
|
|
|
|
|
bool NativeWindowMac::IsFullscreen() const {
|