[maemo-developers] detect window iconified/maximized in SDL

From: W. de Hoog wdehoog at exalondelft.nl
Date: Wed Apr 1 00:11:07 EEST 2009
Hi,

> BTW. another, perhaps a simpler, way with SDL is to track the FocusOut
> and FocusIn events. I think our pre-installed games do that. So when
> your window has the focus, run it, otherwise keep it paused.
A problem seems to be that fullscreen SDL apps (like mine) do not get 
the FocusIn/Out Events. Also the Enter/LeaveNotify events are with 
xcrossing mode NotifyGrab/Ungrab and thus do not generate SDL events.

regards,

-- 
Willem-Jan de Hoog

More information about the maemo-developers mailing list