How to catch when window manger iconify my SDL window and restore it from
iconified state?
Le mardi 8 ao?t 2006 23:32, George a ?crit?:
How to catch when window manger iconify my SDL window and restore it from
iconified state?
You can use the SDL_ACTIVEEVENT event :
“When the mouse leaves or enters the window area a SDL_APPMOUSEFOCUS type
activation event occurs, if the mouse entered the window then gain will be 1,
otherwise gain will be 0. A SDL_APPINPUTFOCUS type activation event occurs
when the application loses or gains keyboard focus. This usually occurs when
another application is made active. Finally, a SDL_APPACTIVE type event
occurs when the application is either minimised/iconified (gain=0) or
restored.”
Laurent Carlier <lordheavy infonie.fr> writes:
You can use the SDL_ACTIVEEVENT event :
Thank you. That is exactly that I was looking for.
How can I miss such obvious event is a mistery