mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
Cocoa: Fix console apps getting a dock icon
Regression introduced by @elmindreda in8b11867464
. Adapted to 3.3-stable from6de084000b
.
This commit is contained in:
parent
860d9deceb
commit
c6fa2c8cfb
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user