diff --git a/src/nsgl_context.m b/src/nsgl_context.m index d447929e..1d5a0fcd 100644 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -147,7 +147,7 @@ int _glfwCreateContext(_GLFWwindow* window, { ADD_ATTR(NSOpenGLPFANoRecovery); ADD_ATTR2(NSOpenGLPFAScreenMask, - CGDisplayIDToOpenGLDisplayMask(CGMainDisplayID())); + CGDisplayIDToOpenGLDisplayMask(wndconfig->monitor->ns.displayID)); } #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070