From d01ee9a02b2d0840bb98413fc392735998d2e2dd Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Tue, 26 Jul 2011 19:53:54 +0200 Subject: [PATCH] Use correct presentation option API --- src/MacVim/MMWindowController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MacVim/MMWindowController.m b/src/MacVim/MMWindowController.m index a083c48171..81eaa12180 100644 --- a/src/MacVim/MMWindowController.m +++ b/src/MacVim/MMWindowController.m @@ -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) +