popup focus lost fix

This commit is contained in:
Kirill Kalishev
2010-11-16 14:11:41 +03:00
parent 74a420254a
commit 7ba1515838
@@ -1295,7 +1295,7 @@ public class AbstractPopup implements JBPopup {
for (Component each : components) {
if (each != null && SwingUtilities.isDescendingFrom(owner, each)) {
Window eachWindow = SwingUtilities.getWindowAncestor(each);
Window eachWindow = each instanceof Window ? (Window)each : SwingUtilities.getWindowAncestor(each);
if (eachWindow == wnd) {
return true;
}