diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index fb03ce72a121b..71b5dbb7aad9b 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -815,7 +815,8 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) { } bool NativeWindowMac::IsResizable() { - bool in_fs_transition = fullscreen_transition_state() != FullScreenTransitionState::NONE; + bool in_fs_transition = + fullscreen_transition_state() != FullScreenTransitionState::NONE; bool has_rs_mask = [window_ styleMask] & NSWindowStyleMaskResizable; return has_rs_mask && !IsFullscreen() && !in_fs_transition; } diff --git a/shell/browser/ui/cocoa/electron_ns_window_delegate.mm b/shell/browser/ui/cocoa/electron_ns_window_delegate.mm index 2b357ad7a8151..f9b7a1170d1de 100644 --- a/shell/browser/ui/cocoa/electron_ns_window_delegate.mm +++ b/shell/browser/ui/cocoa/electron_ns_window_delegate.mm @@ -238,8 +238,9 @@ - (void)windowWillEnterFullScreen:(NSNotification*)notification { shell_->NotifyWindowWillEnterFullScreen(); - // Save resizable value before entering fullscreen. + // Setting resizable to true before entering fullscreen. is_resizable_ = shell_->IsResizable(); + shell_->SetResizable(true); } - (void)windowDidEnterFullScreen:(NSNotification*)notification {