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 1073

Summary: SDL_GetMouseState returns incorrect value
Product: SDL Reporter: Vern Jensen <vern>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Mac OS X 10.6   

Description Vern Jensen 2010-11-04 17:52:46 UTC
I have event code that responds to the resizing of a window by fixing the window's aspect ratio (and then resetting the window's size accordingly). 

After a window resize however, SDL_GetMouseState incorrectly returns "true" for the left mouse button, as if it's down when it's not. This continues until I click inside the window.

MacOS X. Haven't tested on other OSes.
Comment 1 Sam Lantinga 2011-02-24 18:12:30 UTC
I haven't tried this but it might be fixed by all the changes lately.  Can you retest with the latest snapshot?

Thanks!
Comment 2 Vern Jensen 2011-03-09 16:14:47 UTC
Yep, fixed.