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 - Held double-click app startup creates a stuck MOUSEBUTTONDOWN event
Summary: Held double-click app startup creates a stuck MOUSEBUTTONDOWN event
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.3
Hardware: x86_64 Windows 8
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-02 13:10 UTC by snake5creator
Modified: 2014-05-31 21:03 UTC (History)
0 users

See Also:


Attachments
proposed patch v1 (2.78 KB, patch)
2014-05-23 14:06 UTC, snake5creator
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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