wrong condition when evaluating if to fix null focused component

This commit is contained in:
Kirill Kalishev
2011-12-20 12:04:16 +03:00
committed by kirillk
parent c3884ed4b3
commit 289f16f403
@@ -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();