mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
Fixed menu bar for non-bundled OS X applications.
The menu bar for non-bundled applications did not become visible until it had lost and regained focus. This is fixed (somehow) by letting the NSApplication run loop start and stop. Technique by scoopr.
This commit is contained in:
+6
-3
@@ -228,9 +228,12 @@ void _glfwPlatformTerminate(void)
|
||||
_glfw.ns.eventSource = NULL;
|
||||
}
|
||||
|
||||
[NSApp setDelegate:nil];
|
||||
[_glfw.ns.delegate release];
|
||||
_glfw.ns.delegate = nil;
|
||||
id delegate = [NSApp delegate];
|
||||
if (delegate)
|
||||
{
|
||||
[delegate release];
|
||||
[NSApp setDelegate:nil];
|
||||
}
|
||||
|
||||
[_glfw.ns.autoreleasePool release];
|
||||
_glfw.ns.autoreleasePool = nil;
|
||||
|
||||
Reference in New Issue
Block a user