mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Use correct presentation option API
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user