mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-217612 Terminal rename session minimizes the terminal window
Trying to skip tool window deactivation (in case of 'undock' mode) if focus goes to a balloon GitOrigin-RevId: 79d5b7ccf904219a8223c208086bc19dd53c1375
This commit is contained in:
committed by
intellij-monorepo-bot
parent
296029a68a
commit
15524315b5
@@ -5,6 +5,7 @@ import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.actionSystem.Shortcut;
|
||||
import com.intellij.openapi.keymap.KeymapManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.popup.JBPopupFactory;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.wm.ToolWindow;
|
||||
import com.intellij.openapi.wm.ToolWindowManager;
|
||||
@@ -105,7 +106,9 @@ public class Windows {
|
||||
|
||||
// A toolwindow lost focus
|
||||
ToolWindow activeToolWindow = ToolWindowManager.getActiveToolWindow();
|
||||
boolean focusGoesToPopup = JBPopupFactory.getInstance().getParentBalloonFor(focusEvent.getOppositeComponent()) != null;
|
||||
if (!focusEvent.isTemporary() &&
|
||||
!focusGoesToPopup &&
|
||||
activeToolWindow != null &&
|
||||
(activeToolWindow.isAutoHide() || activeToolWindow.getType() == ToolWindowType.SLIDING)) {
|
||||
pinnedWindowFocusLostHandler.accept(id);
|
||||
|
||||
Reference in New Issue
Block a user