onDestroy is only called when app gets deleted from the memory, for example when the system is low on memory... So its ok when onDestroy isn't called.
What do you mean with "exiting from app", do you mean when the user presses the home button? Or do you mean when your code closes the app -> main returns?
For the first case I have no problem, sf::Event::LostEvent/MouseLeft are called and sf::Event::GainFocuse/MouseEntered are called.
For the latter case I use exit(0) to close the app, otherwise I have problems when I open the app again.
AlexAUT
AlexAUT