Fix macOS run-time feature check

* src/nsterm.m (x_set_parent_frame) [NS_IMPL_COCOA]: Fix run-time
feature check.
This commit is contained in:
Alan Third 2018-12-01 13:37:37 +00:00
parent c03574b477
commit 4b176eb863

View file

@ -1891,7 +1891,7 @@ so some key presses (TAB) are swallowed by the system. */
[[child parentWindow] removeChildWindow:child]; [[child parentWindow] removeChildWindow:child];
#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000
#if MAC_OS_X_VERSION_MIN_REQUIRED < 101000 #if MAC_OS_X_VERSION_MIN_REQUIRED < 101000
if ([child respondsToSelector:@selector(setAccessibilitySubrole:)] if ([child respondsToSelector:@selector(setAccessibilitySubrole:)])
#endif #endif
[child setAccessibilitySubrole:NSAccessibilityStandardWindowSubrole]; [child setAccessibilitySubrole:NSAccessibilityStandardWindowSubrole];
#endif #endif
@ -1905,7 +1905,7 @@ so some key presses (TAB) are swallowed by the system. */
ordered: NSWindowAbove]; ordered: NSWindowAbove];
#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000
#if MAC_OS_X_VERSION_MIN_REQUIRED < 101000 #if MAC_OS_X_VERSION_MIN_REQUIRED < 101000
if ([child respondsToSelector:@selector(setAccessibilitySubrole:)] if ([child respondsToSelector:@selector(setAccessibilitySubrole:)])
#endif #endif
[child setAccessibilitySubrole:NSAccessibilityFloatingWindowSubrole]; [child setAccessibilitySubrole:NSAccessibilityFloatingWindowSubrole];
#endif #endif