Fix double mouse motion in OS X
Simply ignore the event handler for Windowed mode in fullscreen.
This commit is contained in:
parent
6456acb47b
commit
6a6cc495b4
1 changed files with 3 additions and 0 deletions
|
@ -232,6 +232,9 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
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 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue