diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2016-09-14 04:02:18 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2016-09-14 04:02:18 +0200 |
commit | 66dac878ac9fc278044281b7f67fbed668e4523d (patch) | |
tree | 2f1b099566a50eb624215a14ff837ed2f828fc59 /tools/editor/script_editor_debugger.cpp | |
parent | 6f7b2d277fc068264b72b0a39d464da03807c628 (diff) |
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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp index da42f54095..694413cf18 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); |