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 - Events stop working for 1st window when 2nd is created
Summary: Events stop working for 1st window when 2nd is created
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Windows 7
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-06 14:08 UTC by Pavel Kanzelsberger
Modified: 2011-02-24 18:16 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!