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 1187

Summary: Mouse focus detection broken
Product: SDL Reporter: Rainer Deyke <rainerd>
Component: eventsAssignee: (disabled) Jørgen Tjernø <jorgen>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows (XP)   

Description Rainer Deyke 2011-04-22 00:40:22 UTC
SDL does not appear to detect when the mouse leaves the window under Windows.  Specifically:
  - I am not receiving a SDL_WINDOWEVENT/SDL_WINDOWEVENT_LEAVE event.
  - SDL_GetMouseFocus() is not returning null after the mouse has left the window.
  - Worst of all, SDL_GetMouseState is returning the last recorded mouse position within the window, regardless of where the mouse has moved since then.
Comment 1 Sam Lantinga 2013-05-21 02:35:11 UTC
I believe this is fixed in the current snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip