diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 3523806a..fd57040e 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -1163,7 +1163,7 @@ void _glfwPlatformSetCursorPos(_GLFWwindow* window, int x, int y) { if (window->mode == GLFW_FULLSCREEN) { - NSPoint globalPoint = NSMakePoint(x, y); + CGPoint globalPoint = CGMakePoint(x, y); CGDisplayMoveCursorToPoint(CGMainDisplayID(), globalPoint); } else