Cocoa: Event polling did not initialize AppKit

Fixes #1218.
This commit is contained in:
Camilla Löwy
2018-03-01 02:23:27 +01:00
parent 0d4534733b
commit 77879736af
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -1534,6 +1534,9 @@ void _glfwPlatformSetWindowOpacity(_GLFWwindow* window, float opacity)
void _glfwPlatformPollEvents(void)
{
if (!initializeAppKit())
return;
for (;;)
{
NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny