🔧 Don't drag fullscreen window

This commit is contained in:
Felix Rieseberg 2017-09-26 18:03:44 -04:00
parent 91e11f8e6f
commit d45788a7b8

View file

@ -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;