Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix double mouse motion in OS X
Browse files Browse the repository at this point in the history
Simply ignore the event handler for Windowed mode in fullscreen.
  • Loading branch information
jjgod committed Jan 20, 2011
1 parent 8b901db commit 21e988d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -232,6 +232,9 @@ - (void)mouseMoved:(NSEvent *)theEvent
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 ||
Expand Down

0 comments on commit 21e988d

Please sign in to comment.