We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2650

Summary: Cocoa_WarpMouseGlobal missing conditional
Product: SDL Reporter: Tim McDaniel <tmcdaniel>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sdlbug
Version: don't know   
Hardware: All   
OS: Mac OS X 10.8   

Description Tim McDaniel 2014-07-18 06:00:20 UTC
Reviewing current revision 9008 code, against the 2.0.3 release, I see that Cocoa_WarpMouseGlobal is missing the code dealing with the conditional "if ([data->listener isMoving])", as at the top of Cocoa_WarpMouse.  This extra bit of code handles the case of attempting to warp the mouse when the window is being moved by user, which will result in the window snapping to weird locations, and other evil.  Although I have not directly tested Cocoa_WarpMouseGlobal, it is difficult to see how it would not suffer the same evil behavior since it is currently missing that bit of code.

Cheers
Comment 1 Robotic-Brain 2014-08-18 01:40:33 UTC
Fixed by https://hg.libsdl.org/SDL/rev/c5e33f9a0d03