mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
wrong condition when evaluating if to fix null focused component
This commit is contained in:
@@ -594,9 +594,9 @@ public class IdeEventQueue extends EventQueue {
|
||||
}
|
||||
|
||||
boolean mouseEventsAhead = isMouseEventAhead(e);
|
||||
boolean focusTransferred = IdeFocusManager.getGlobalInstance().isFocusBeingTransferred();
|
||||
boolean focusTransferredNow = IdeFocusManager.getGlobalInstance().isFocusBeingTransferred();
|
||||
|
||||
boolean okToFixFocus = !mouseEventsAhead && focusTransferred;
|
||||
boolean okToFixFocus = !mouseEventsAhead && !focusTransferredNow;
|
||||
|
||||
if (okToFixFocus) {
|
||||
Window showingWindow = mgr.getActiveWindow();
|
||||
|
||||
Reference in New Issue
Block a user