RUBY-9697 Code Analysis window opens UNDER the Commit Changes Dialog [r=kirillk]

This commit is contained in:
Dennis Ushakov
2011-11-02 14:14:06 +04:00
parent 2398b9eaf0
commit 1deb547b6f
@@ -811,7 +811,9 @@ public class FocusManagerImpl extends IdeFocusManager implements Disposable {
assertDispatchThread();
Component result = null;
if (myRunContext != null) {
if (!ApplicationManager.getApplication().isActive()) {
result = myLastFocusedAtDeactivation.get(getLastFocusedFrame()).get();
} else if (myRunContext != null) {
result = (Component)myRunContext.getData(PlatformDataKeys.CONTEXT_COMPONENT.getName());
}