diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index d5f12bde13dd..295c0ac5400a 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -589,7 +589,7 @@ void NativeWindowMac::SetResizable(bool resizable) { [window_ setStyleMask:[window_ styleMask] | NSResizableWindowMask]; } else { [[window_ standardWindowButton:NSWindowZoomButton] setEnabled:NO]; - [window_ setStyleMask:[window_ styleMask] ^ NSResizableWindowMask]; + [window_ setStyleMask:[window_ styleMask] & (~NSResizableWindowMask)]; } }