1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-12-03 07:28:51 -05:00

Cocoa: Fix missing check for selector

Fixes #1457.
This commit is contained in:
Camilla Löwy 2019-03-27 20:04:43 +01:00
parent 1fca33b3c1
commit cad22cb2f6

View File

@ -857,8 +857,10 @@ static GLFWbool createNativeWindow(_GLFWwindow* window,
[window->ns.object setDelegate:window->ns.delegate];
[window->ns.object setAcceptsMouseMovedEvents:YES];
[window->ns.object setRestorable:NO];
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
[window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed];
if ([window->ns.object respondsToSelector:@selector(setTabbingMode:)])
[window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed];
#endif
_glfwPlatformGetWindowSize(window, &window->ns.width, &window->ns.height);