IDEA-223740 [Debugger tool window]: Focus is lost when switching tabs via "Show List of Tabs" on Linux

GitOrigin-RevId: de6f50a3aaaae32e379ddac9e42a7b42b485e4fc
This commit is contained in:
Viktor Shatrov
2019-10-02 10:07:03 +00:00
committed by intellij-monorepo-bot
parent 41b30868fa
commit 5e86efe5f2
@@ -624,7 +624,9 @@ public class RunnerContentUi implements ContentUI, Disposable, CellTransform.Fac
ContentManager manager = value.getManager();
if (manager != null) {
ApplicationManager.getApplication().invokeLater(() -> {
manager.setSelectedContentCB(value, true, true);
IdeFocusManager.getInstance(getProject()).doWhenFocusSettlesDown(() -> {
manager.setSelectedContentCB(value, true, true);
});
});
}
return PopupStep.FINAL_CHOICE;