One of the "events" in Windows programming is "focus." So if the app that loses data is coded to do something when focus is lost, that programmer is asked "Why?" and "How do I stop this?"