# HG changeset patch # User Jjgod Jiang # Date 1295565908 -3600 # Node ID 00d1fef487c59abefdd3c13d4a2a75082a6ec172 # Parent 03db7d4b02b434b274dc0a5b1601f7496fe0a999 Fix double mouse motion in OS X Simply ignore the event handler for Windowed mode in fullscreen. diff -r 03db7d4b02b4 -r 00d1fef487c5 src/video/cocoa/SDL_cocoawindow.m --- a/src/video/cocoa/SDL_cocoawindow.m Thu Jan 20 17:11:22 2011 -0800 +++ b/src/video/cocoa/SDL_cocoawindow.m Fri Jan 21 00:25:08 2011 +0100 @@ -232,6 +232,9 @@ SDL_Window *window = _data->window; NSPoint point; + if (window->flags & SDL_WINDOW_FULLSCREEN) + return; + point = [theEvent locationInWindow]; point.y = window->h - point.y; if ( point.x < 0 || point.x >= window->w ||