From 2fbb560eb72fea695687d33066c91a329d6d0465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 25 Feb 2019 02:41:05 +0100 Subject: [PATCH] Cocoa: Fix window creation blocking after re-init Fixes #1439. --- src/cocoa_init.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cocoa_init.m b/src/cocoa_init.m index 2f08144a..25039e37 100644 --- a/src/cocoa_init.m +++ b/src/cocoa_init.m @@ -486,6 +486,9 @@ int _glfwPlatformInit(void) toTarget:_glfw.ns.helper withObject:nil]; + if (NSApp) + _glfw.ns.finishedLaunching = GLFW_TRUE; + [NSApplication sharedApplication]; _glfw.ns.delegate = [[GLFWApplicationDelegate alloc] init];