Is it the same window in front every time? If so, I suspect that the application is configuring the window to stay on top. That means that the window can become inactive, but always remains on top of other windows. If that's the case, check to see if the program as an option for disabling this behavior.
This was first published in June 2004