aboutsummaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2016-09-14 04:02:18 +0200
committerRémi Verschelde2016-10-09 17:29:59 +0200
commit12d4d6566892a377e5e6ddd171ecf69a2ccf129d (patch)
tree6b0a50317eb4f266e3e8c9b65707bad9e1451ae0 /platform/windows/os_windows.cpp
parent56dc7aa568b7df870cb894847ec5998964e05765 (diff)
downloadgodot-12d4d6566892a377e5e6ddd171ecf69a2ccf129d.tar.gz
godot-12d4d6566892a377e5e6ddd171ecf69a2ccf129d.tar.zst
godot-12d4d6566892a377e5e6ddd171ecf69a2ccf129d.zip
Improve debug focus behavior
Fix focusing debugged game on Windows Add re-focusing editor on continue (cherry picked from commit 66dac878ac9fc278044281b7f67fbed668e4523d)
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r--platform/windows/os_windows.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index f38bda589..35d90a830 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -2157,10 +2157,15 @@ String OS_Windows::get_stdin_string(bool p_block) {
}
+void OS_Windows::enable_for_stealing_focus(ProcessID pid) {
+
+ AllowSetForegroundWindow(pid);
+
+}
+
void OS_Windows::move_window_to_foreground() {
SetForegroundWindow(hWnd);
- BringWindowToTop(hWnd);
}