|
@@ -446,8 +446,11 @@ static GLFWbool initializeTIS(void)
|
|
|
{
|
|
|
_glfw.ns.finishedLaunching = GLFW_TRUE;
|
|
|
_glfwPlatformPostEmptyEvent();
|
|
|
+
|
|
|
// In case we are unbundled, make us a proper UI application
|
|
|
- [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
|
|
|
+ if (_glfw.hints.init.ns.menubar)
|
|
|
+ [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
|
|
|
+
|
|
|
[NSApp stop:nil];
|
|
|
}
|
|
|
|