changeset 5059:00d1fef487c5

Fix double mouse motion in OS X Simply ignore the event handler for Windowed mode in fullscreen.
author Jjgod Jiang <gzjjgod@gmail.com>
date Fri, 21 Jan 2011 00:25:08 +0100
parents 03db7d4b02b4
children 2170edcdfbd0
files src/video/cocoa/SDL_cocoawindow.m
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ||