Hi, I'm trying to determine whether the current project frame has focus or not. It's not too hard to do this by getting the JFrame (WindowManager.getInstance().getFrame(project)) and attaching a window focus listener however there is a limitation with this method.
Any time you bring up an idea dialog it you get a windowLostFocus event. I'm only interested in knowing when the focus goes away from the project window and onto either another project window or to another application entirely. Is there a workaround or a better alternative listener I can use?