🔧 Don't drag fullscreen window
This commit is contained in:
parent
91e11f8e6f
commit
d45788a7b8
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue