Fix expandable hints on completion popup

This commit is contained in:
Sergey Malenkov
2016-02-01 20:02:31 +03:00
parent d14295f053
commit 3d6c9eea55
@@ -334,6 +334,9 @@ public abstract class AbstractExpandableItemsHandler<KeyType, ComponentType exte
Window owner = SwingUtilities.getWindowAncestor(myComponent);
Window popup = SwingUtilities.getWindowAncestor(myTipComponent);
Window focus = WindowManagerEx.getInstanceEx().getMostRecentFocusedWindow();
if (focus == owner.getOwner()) {
focus = null; // do not check intersection with parent
}
boolean focused = SystemInfo.isWindows || owner.isFocused();
for (Window other : owner.getOwnedWindows()) {
if (!focused && !SystemInfo.isWindows) {