diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index 32a2ec6bb483e..8896662b1a9e1 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -848,7 +848,7 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) { } bool NativeWindowMac::IsMinimizable() { - return HasStyleMask(NSMiniaturizableWindowMask); + return HasStyleMask(NSWindowStyleMaskMiniaturizable); } void NativeWindowMac::SetMaximizable(bool maximizable) { diff --git a/shell/browser/ui/cocoa/electron_ns_window_delegate.mm b/shell/browser/ui/cocoa/electron_ns_window_delegate.mm index 6206891f0e69b..57b2b90ba0444 100644 --- a/shell/browser/ui/cocoa/electron_ns_window_delegate.mm +++ b/shell/browser/ui/cocoa/electron_ns_window_delegate.mm @@ -235,7 +235,7 @@ - (void)windowDidEndLiveResize:(NSNotification*)notification { - (void)windowWillEnterFullScreen:(NSNotification*)notification { // Store resizable mask so it can be restored after exiting fullscreen. - is_resizable_ = shell_->HasStyleMask(NSResizableWindowMask); + is_resizable_ = shell_->HasStyleMask(NSWindowStyleMaskResizable); shell_->SetFullScreenTransitionState(FullScreenTransitionState::ENTERING);