mirror of
https://github.com/glfw/glfw.git
synced 2025-04-05 21:45:08 +00:00
Cocoa: Fix console apps getting a dock icon
Regression introduced by @elmindreda in
8b11867464
.
This commit is contained in:
parent
9477311130
commit
6de084000b
1 changed files with 2 additions and 1 deletions
|
@ -555,7 +555,8 @@ int _glfwPlatformInit(void)
|
|||
[NSApp run];
|
||||
|
||||
// In case we are unbundled, make us a proper UI application
|
||||
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
|
||||
if (_glfw.hints.init.ns.menubar)
|
||||
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
|
||||
|
||||
return GLFW_TRUE;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue