From 54192de4db5924e477316e5154f5a68f3bf802ef Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Thu, 6 Apr 2017 17:53:11 +0300 Subject: [PATCH] IDEA-168238 lookup popup stays visible on focus change (via alt-tab), if auto popup documentation is turned on --- .../com/intellij/ui/popup/StackingPopupDispatcherImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/ui/popup/StackingPopupDispatcherImpl.java b/platform/platform-impl/src/com/intellij/ui/popup/StackingPopupDispatcherImpl.java index ca88f58dfc85..093247f4b651 100644 --- a/platform/platform-impl/src/com/intellij/ui/popup/StackingPopupDispatcherImpl.java +++ b/platform/platform-impl/src/com/intellij/ui/popup/StackingPopupDispatcherImpl.java @@ -203,7 +203,12 @@ public class StackingPopupDispatcherImpl extends StackingPopupDispatcher impleme @Override public boolean close() { - return closeActivePopup(); + if (!closeActivePopup()) return false; + // try to close other popups in the stack + while (closeActivePopup()) { + // close all popups one by one + } + return true; // at least one popup was closed } @Override