diff --git a/src/cocoa_init.m b/src/cocoa_init.m index 0eb86f57..209639e2 100644 --- a/src/cocoa_init.m +++ b/src/cocoa_init.m @@ -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]; }