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 2520

Summary: Held double-click app startup creates a stuck MOUSEBUTTONDOWN event
Product: SDL Reporter: snake5creator
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Windows 8   
Attachments: proposed patch v1

Description snake5creator 2014-05-02 13:10:44 UTC
When starting application with the usual "double click on file" method on Windows, only holding the last click, an unnecessary MOUSEBUTTONDOWN event is sent before the initial MOUSEMOTION event, and mouse button state is stuck in the sense that it takes a subsequent button release, followed by another press for the system to resume sending events (beginning with the next button release / MOUSEBUTTONUP event).

Input event log with held double-click startup: http://i.imgur.com/nypGKR2.png

Without: http://i.imgur.com/yaIqAvV.png
Comment 1 snake5creator 2014-05-23 14:06:55 UTC
Created attachment 1658 [details]
proposed patch v1
Comment 2 Sam Lantinga 2014-05-31 21:03:49 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/9159d5c47819