mirror of
https://github.com/electron/electron.git
synced 2026-02-09 22:56:24 -05:00
Merge pull request #10627 from electron/fullscreen-drag
Don't drag fullscreen window
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user