1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix debugging embedded game does not refocus on continue

This commit is contained in:
Hilderin
2024-12-29 18:16:19 -05:00
parent efa144396d
commit cfac31b745
3 changed files with 10 additions and 0 deletions

View File

@@ -296,6 +296,7 @@ void EmbeddedProcess::_check_focused_process_id() {
focused_process_id = process_id;
if (focused_process_id == current_process_id) {
// The embedded process got the focus.
emit_signal(SNAME("embedded_process_focused"));
if (has_focus()) {
// Redraw to updated the focus style.
queue_redraw();
@@ -312,6 +313,7 @@ void EmbeddedProcess::_bind_methods() {
ADD_SIGNAL(MethodInfo("embedding_completed"));
ADD_SIGNAL(MethodInfo("embedding_failed"));
ADD_SIGNAL(MethodInfo("embedded_process_updated"));
ADD_SIGNAL(MethodInfo("embedded_process_focused"));
}
EmbeddedProcess::EmbeddedProcess() {