diff --git a/atom/browser/native_browser_view_mac.mm b/atom/browser/native_browser_view_mac.mm index 3d77b2a84891..4ed9395f9602 100644 --- a/atom/browser/native_browser_view_mac.mm +++ b/atom/browser/native_browser_view_mac.mm @@ -47,6 +47,10 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask = return; } + if (([self.window styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask) { + return; + } + self.initialLocation = [event locationInWindow]; } @@ -56,6 +60,10 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask = return; } + if (([self.window styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask) { + return; + } + NSPoint currentLocation = [NSEvent mouseLocation]; NSPoint newOrigin;