From d45788a7b8855729917016815543dad3eeeac3f4 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Tue, 26 Sep 2017 18:03:44 -0400 Subject: [PATCH] :wrench: Don't drag fullscreen window --- atom/browser/native_browser_view_mac.mm | 8 ++++++++ 1 file changed, 8 insertions(+) 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;