Cocoa: Fix console apps getting a dock icon

Regression introduced by @elmindreda in
8b11867464.

Adapted to 3.3-stable from 6de084000b.
This commit is contained in:
Camilla Löwy 2021-02-10 17:23:43 +01:00
parent 860d9deceb
commit c6fa2c8cfb

View File

@ -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
if (_glfw.hints.init.ns.menubar)
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
[NSApp stop:nil];
}