[SDL] Events problem with a pygtk hosted SDL app

Mike Cruse mcruse at definium.net
Wed Nov 8 16:49:16 PST 2006


Hi,

I have been trying out the SDL_WINDOWID hack(?) and I have it working
quite well as far as displaying an SDL app in a pygtk window.

My problem is that events (as in mouse) don't get delivered to the SDL
app and I don't understand why.

Any clues on the list?

I am trying this with some games like neverball and ppracer.

As an alternative I have been able to re-parent an SDL app with some gdk
magic once I have the the X window id. That was a little tricky as SDL
was using the wrong type for the WM_NAME X property. An upgrade to the
1.2.10 fixed that.

I would still like to use the SDL_WINDOWID method though.

Any ideas would be appreciated.






More information about the SDL mailing list