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) +