aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/script_editor_debugger.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2016-09-14 04:02:18 +0200
committerPedro J. Estébanez2016-09-14 04:02:18 +0200
commit66dac878ac9fc278044281b7f67fbed668e4523d (patch)
tree2f1b099566a50eb624215a14ff837ed2f828fc59 /tools/editor/script_editor_debugger.cpp
parent6f7b2d277fc068264b72b0a39d464da03807c628 (diff)
downloadgodot-66dac878ac9fc278044281b7f67fbed668e4523d.tar.gz
godot-66dac878ac9fc278044281b7f67fbed668e4523d.tar.zst
godot-66dac878ac9fc278044281b7f67fbed668e4523d.zip
Improve debug focus behavior
Fix focusing debugged game on Windows Add re-focusing editor on continue
Diffstat (limited to 'tools/editor/script_editor_debugger.cpp')
-rw-r--r--tools/editor/script_editor_debugger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp
index da42f5409..694413cf1 100644
--- a/tools/editor/script_editor_debugger.cpp
+++ b/tools/editor/script_editor_debugger.cpp
@@ -216,6 +216,8 @@ void ScriptEditorDebugger::debug_continue() {
ERR_FAIL_COND(connection.is_null());
ERR_FAIL_COND(!connection->is_connected());
+ OS::get_singleton()->enable_for_stealing_focus(EditorNode::get_singleton()->get_child_process_id());
+
Array msg;
msg.push_back("continue");
ppeer->put_var(msg);