--- a/src/video/cocoa/SDL_cocoawindow.m Tue Jun 04 13:53:55 2013 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m Tue Jun 04 14:54:49 2013 -0700
@@ -240,12 +240,13 @@
- (void)windowDidBecomeKey:(NSNotification *)aNotification
{
SDL_Window *window = _data->window;
+ SDL_Mouse *mouse = SDL_GetMouse();
/* We're going to get keyboard events, since we're key. */
SDL_SetKeyboardFocus(window);
/* If we just gained focus we need the updated mouse position */
- {
+ if (!mouse->relative_mode) {
NSPoint point;
int x, y;