From a38881ac7e719e58a543a7dfbda9a5d53081dc70 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Wed, 7 Jan 2026 14:55:55 +0100 Subject: [PATCH] Prevent the dock from stealing focus when running the project. --- editor/editor_node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 615f6a4792..38b0340995 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -5341,9 +5341,9 @@ void EditorNode::_project_run_started() { int action_on_play = EDITOR_GET("run/bottom_panel/action_on_play"); if (action_on_play == ACTION_ON_PLAY_OPEN_OUTPUT) { - editor_dock_manager->focus_dock(log); + editor_dock_manager->open_dock(log, true); } else if (action_on_play == ACTION_ON_PLAY_OPEN_DEBUGGER) { - editor_dock_manager->focus_dock(EditorDebuggerNode::get_singleton()); + editor_dock_manager->open_dock(EditorDebuggerNode::get_singleton(), true); } }