From f6a9338b069d42e18a29592a87bc0b1f27c45d1c Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 6 Jun 2013 01:28:01 +0200 Subject: [PATCH] Hooked up monitor callback on OS X. --- src/cocoa_window.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 2674db77..eea86335 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -201,6 +201,11 @@ static void centerCursor(_GLFWwindow *window) } } +- (void)applicationDidChangeScreenParameters:(NSNotification *) notification +{ + _glfwInputMonitorChange(); +} + @end // Translates Mac OS X key modifiers into GLFW ones