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 - Mouse focus detection broken
Summary: Mouse focus detection broken
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Windows (XP)
: P2 major
Assignee: (disabled) Jørgen Tjernø
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-22 00:40 UTC by Rainer Deyke
Modified: 2013-05-21 02:35 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 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