Fix additional window decoration when changing context

Fixes IDEA-298893

GitOrigin-RevId: 0ea6c129607737681c212c619fa1ef753e2f6f39
This commit is contained in:
Matt Ellis
2022-10-05 09:15:42 +01:00
committed by intellij-monorepo-bot
parent e97192a0eb
commit 4228a301ed

View File

@@ -870,7 +870,12 @@ public final class DockManagerImpl extends DockManager implements PersistentStat
window.setupToolWindowPane();
}
UIUtil.invokeLaterIfNeeded(window::show);
// If the window exists, it's already visible. Don't show multiple times as this will set up additional listeners and window decoration
UIUtil.invokeLaterIfNeeded(() -> {
if (!window.getFrame().isVisible()) {
window.show();
}
});
}
}
}