Cocoa: Hide cursor instead of using blank image

When cursor isn't in normal mode and should be hidden, use [NSCursor hide]
method instead of setting it to blank image. This should prevent
situations when hidden cursor becomes visible after system notification
was shown.

Fixes #971.
Closes #1028.
This commit is contained in:
Sergey Tikhomirov
2017-06-05 00:26:55 +03:00
parent c23fca6343
commit 80e4922b5e
3 changed files with 23 additions and 19 deletions
-3
View File
@@ -352,9 +352,6 @@ void _glfwPlatformTerminate(void)
_glfw.ns.listener = nil;
}
[_glfw.ns.cursor release];
_glfw.ns.cursor = nil;
free(_glfw.ns.clipboardString);
_glfwTerminateNSGL();