Use correct presentation option API

This commit is contained in:
Bjorn Winckler
2011-07-26 19:53:54 +02:00
parent 4fbdea5683
commit d01ee9a02b
+2 -1
View File
@@ -304,7 +304,7 @@
// enter full screen after calling makeKeyAndOrderFront:.
// TODO: Figure out a way to switch back to main space?
NSWindow *win = [self window];
BOOL inFullScreen = ([NSApp presentationOptions] &
BOOL inFullScreen = ([NSApp currentSystemPresentationOptions] &
NSApplicationPresentationFullScreen) != 0;
if (inFullScreen)
[win setCollectionBehavior:NSWindowCollectionBehaviorDefault];
@@ -1475,3 +1475,4 @@
@end // MMWindowController (Private)