Events only to one window

Ok guys, I was wondering if anyone else on Windows 7 could confirm this? Or if I’m making a procedural error.

I have two SDL windows open, but other than focus events, events such as SDL_MOUSEBUTTONDOWN are only registering for my second window and not my first, even if I use SDL_RAISEWINDOW().

Do I have to do something to enable event input on a specific window?

On another note I thought I’d just mention I just submitted bug 884 which is that you can get SDL_WINDOWEVENT_FOCUS_GAINED spam with SDL Text Input enabled (enabled by default) and you have multiple windows.

Cheers for any help.

Can you submit a bug report at http://bugzilla.libsdl.org ?

I still have to do a pass on fullscreen support and multi-window
events. Although if you’d like to dig into it sooner, patches are
always welcome!

See ya!On Sun, Nov 15, 2009 at 7:10 AM, Scribe <ali_lowe at sky.com> wrote:

Ok guys, I was wondering if anyone else on Windows 7 could confirm this? Or
if I’m making a procedural error.

I have two SDL windows open, but other than focus events, events such as
SDL_MOUSEBUTTONDOWN are only registering for my second window and not my
first, even if I use SDL_RAISEWINDOW().

Do I have to do something to enable event input on a specific window?

On another note I thought I’d just mention I just submitted bug 884 which is
that you can get SDL_WINDOWEVENT_FOCUS_GAINED spam with SDL Text Input
enabled (enabled by default) and you have multiple windows.

Cheers for any help.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Bug report posted! I’ll look into the problem if possible but my knowledge of OS level window/event handling is pretty limited so it depends how deep the issue goes.

I’m just hoping we can get it sorted soon as it’s holding me up on my latest little project :frowning: