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 976

Summary: Windows: mouse focus problem
Product: SDL Reporter: Mike <michrublev>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Windows (All)   

Description Mike 2010-03-27 09:49:40 UTC
The behavior described below reveals only on win32 platform, and that makes me think that something is wrong:

Consider two windows:
1) SDL window
2) Explorer window (or any other application)

If window #2 (is focused) is above  window #1 (which is SDL's window), window #1 receives all mouse messages of window #2.
So if I move mouse in the window #2, SDL window (which is unfocused) also receives SDL_MOUSEMOTION events.
Comment 1 Sam Lantinga 2011-01-21 13:02:52 UTC
This is fixed with the removal of raw input in the latest SDL snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

Thanks!