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 1105

Summary: SDL_GetMouseState returns wrong location upon window re-activation
Product: SDL Reporter: Vern Jensen <vern>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Mac OS X 10.6   

Description Vern Jensen 2011-01-24 19:33:09 UTC
Do this process:

1) Click on the desktop or some other program to de-activate your SDL window.
2) Click on the SDL window again to bring it back to the front.

Now, all calls to SDL_GetMouseState will return the *former* mouse location within the window, prior to window deactivation. This will continue until the mouse is physically moved by the user, at which point it will again return correct values.

Version 1.3-5080
Comment 1 Sam Lantinga 2011-02-20 20:50:00 UTC
This is fixed, thanks!
http://hg.libsdl.org/SDL/rev/71fe70373e58
Comment 2 Vern Jensen 2011-02-23 13:16:50 UTC
Indeed it is. :-)