From 6aa33bd9c3e71b6f3e1f13c6d085cfdda4b8007e Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Mon, 27 Apr 2015 21:47:18 +0300 Subject: [PATCH] use SwingUtil.getWindowAncestor --- .../src/com/intellij/ide/actions/GotoActionAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/ide/actions/GotoActionAction.java b/platform/lang-impl/src/com/intellij/ide/actions/GotoActionAction.java index 46965eae5963..2b4eea85c3c6 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/GotoActionAction.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/GotoActionAction.java @@ -202,7 +202,7 @@ public class GotoActionAction extends GotoActionBase implements DumbAware { if (action instanceof ActionGroup && ((ActionGroup)action).getChildren(event).length > 0) { ListPopup popup = JBPopupFactory.getInstance().createActionGroupPopup( event.getPresentation().getText(), (ActionGroup)action, context, JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, false); - Window window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow(); + Window window = SwingUtilities.getWindowAncestor(component); if (window != null) { popup.showInCenterOf(window); }