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 3453 - First mouse button input after a drag and drop event is ignored
Summary: First mouse button input after a drag and drop event is ignored
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Windows 10
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-14 12:42 UTC by Olav Sørensen
Modified: 2016-10-14 15:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olav Sørensen 2016-10-14 12:42:34 UTC
(happens in Windows 10, and possibly in other OSes too)

After a drag and drop event, any following mouse button input (down/up) doesn't generate an event. Clicking any mouse button a *second* time generates an event like it should.

This bug is not present in 2.0.4, but it's present in the newest code base as of 14th of October 2016. This is a major bug and should be fixed before SDL 2.0.5 is released.
Comment 1 Olav Sørensen 2016-10-14 12:50:45 UTC
I just found out that setting SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH to 1 fixes the problem, so it's definitely related to the SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH.
Comment 2 Olav Sørensen 2016-10-14 14:17:34 UTC
Further investigation shows that the new SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH logic also causes this issue in other cases, like the first time you open the program and click the mouse.
Comment 3 Sam Lantinga 2016-10-14 15:40:49 UTC
Fixed, thanks for reporting this!
https://hg.libsdl.org/SDL/rev/bf0989bde198