I have a program that has popup links that will activate even if a window is in front and has the focus. When the popup is activated, the program window comes to the front and does not gain the focus, that stays with the previous window. The only way to get the previous window to come to the front is to click on the window on top to give it the focus then the previous program can be brought to the front.

If you understand my question, is there a way to fix the problem?