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

Summary: First mouse button input after a drag and drop event is ignored
Product: SDL Reporter: Olav Sørensen <olav.sorensen>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows 10   

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