From 4658e72b84e0c36d97bc787d54f35bed21043acc Mon Sep 17 00:00:00 2001 From: David Avedissian Date: Sat, 18 Jan 2014 21:32:18 +0000 Subject: [PATCH] Fixed link error introduced by previous commit --- src/cocoa_window.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index ee4ad71e..2d96f670 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -186,13 +186,14 @@ static NSRect convertRectToBacking(_GLFWwindow* window, NSRect contentRect) - (void)windowDidBecomeKey:(NSNotification *)notification { _glfwInputWindowFocus(window, GL_TRUE); - _glfwPlatformSetCursorMode(window, window->cursorMode); + _glfwPlatformApplyCursorMode(window, window->cursorMode); } - (void)windowDidResignKey:(NSNotification *)notification { _glfwInputWindowFocus(window, GL_FALSE); - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_NORMAL); + window->cursorMode = GLFW_CURSOR_NORMAL; + _glfwPlatformApplyCursorMode(window); } @end