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 716

Summary: Application doesn't receive SDL_ACTIVEEVENT when dragging from other window
Product: SDL Reporter: Armin Burgmeier <armin>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: crazy-ivanovic
Version: 1.2.13Keywords: target-1.2.14
Hardware: x86   
OS: Linux   

Description Armin Burgmeier 2009-03-15 04:35:45 UTC
When I hold a mouse button down on another (non-SDL) window, then move the mouse over an SDL window and releasing the mouse button there, then the application does not receive an SDL_ACTIVEEVENT with state SDL_APPMOUSEFOCUS and gain 1.

Furthermore, SDL_GetAppState() reports the application not having mouse focus until moving the mouse out of the window and back in again.

Tested on x86_64 linux on a GNOME desktop using the Metacity window manager.
Comment 1 Armin Burgmeier 2009-03-16 03:39:29 UTC
The problem does not occur on Windows.
Comment 2 Ryan C. Gordon 2009-09-13 16:33:27 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 3 Sam Lantinga 2009-09-27 16:25:19 UTC
This is fixed for the next release.  Thanks!
Comment 4 Nils Kneuper 2010-04-20 03:49:38 UTC
The fix for this bug introduced the regression which is reported in bug #894. Personally I see this bug fix as less important compared to the regression it introduced. Please do recheck the fix for the problems it does cause.

http://bugzilla.libsdl.org/show_bug.cgi?id=894