IDEA-133942 Focus often stays in editor when dialogs are shown (typo)

This commit is contained in:
Denis Fokin
2015-09-14 14:21:13 +03:00
parent 09f9d4ef5b
commit 7f47a433a1
@@ -83,7 +83,7 @@ public class ApplicationActivationStateManager {
return setActive(application, window);
}
}
else if (windowEvent.getID() == WindowEvent.WINDOW_DEACTIVATED && windowEvent.getOppositeWindow() != null) {
else if (windowEvent.getID() == WindowEvent.WINDOW_DEACTIVATED && windowEvent.getOppositeWindow() == null) {
requestToDeactivateTime.getAndSet(System.currentTimeMillis());
// For stuff that cannot wait windowEvent notify about deactivation immediately