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 999

Summary: Events stop working for 1st window when 2nd is created
Product: SDL Reporter: Pavel Kanzelsberger <kanzels>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: jspradlin
Version: HG 2.0   
Hardware: x86   
OS: Windows 7   

Description Pavel Kanzelsberger 2010-05-06 14:08:05 UTC
Everything regarding events works fine until you create a new window, then simply any kind of events (mouse, keyboard) will stop entering the event queue for the first window, and they work fine for the 2nd window. It doesn't matter if you close the 2nd window, they won't work again for the 1st window at all. First window is not broken or something, because I can still draw or animate stuff in that window as before.
Comment 1 Sam Lantinga 2010-07-21 00:32:17 UTC
I believe this is fixed in the latest SDL 1.3 snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

Can you check it out?

Thanks!
Comment 2 Nathaniel J Fries 2011-01-07 12:26:03 UTC
I tested with this:

if(event.type == SDL_MOUSEBUTTONDOWN && event.button.windowID == SDL_GetWindowID(window1))
{
    loop_running = false;
    break;
}
in my event loop (i create a window2 immediately after window1)
The loop quits, so this appears to be fixed.

I am also running Windows 7.
Comment 3 Sam Lantinga 2011-02-24 18:16:01 UTC
Thanks!