Merge pull request #10627 from electron/fullscreen-drag

Don't drag fullscreen window
This commit is contained in:
Felix Rieseberg 2017-09-27 08:08:08 -07:00 committed by GitHub
commit 04373b8658

View file

@ -47,6 +47,10 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
return;
}
if (self.window.styleMask & NSFullScreenWindowMask) {
return;
}
self.initialLocation = [event locationInWindow];
}
@ -56,6 +60,10 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
return;
}
if (self.window.styleMask & NSFullScreenWindowMask) {
return;
}
NSPoint currentLocation = [NSEvent mouseLocation];
NSPoint newOrigin;