Merge pull request #10627 from electron/fullscreen-drag
Don't drag fullscreen window
This commit is contained in:
commit
04373b8658
1 changed files with 8 additions and 0 deletions
|
@ -47,6 +47,10 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self.window.styleMask & NSFullScreenWindowMask) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
self.initialLocation = [event locationInWindow];
|
self.initialLocation = [event locationInWindow];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +60,10 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self.window.styleMask & NSFullScreenWindowMask) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
NSPoint currentLocation = [NSEvent mouseLocation];
|
NSPoint currentLocation = [NSEvent mouseLocation];
|
||||||
NSPoint newOrigin;
|
NSPoint newOrigin;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue