mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
popup focus lost fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user