Improve debug focus behavior

Fix focusing debugged game on Windows
Add re-focusing editor on continue
This commit is contained in:
Pedro J. Estébanez
2016-09-14 04:02:18 +02:00
parent 6f7b2d277f
commit 66dac878ac
9 changed files with 30 additions and 1 deletions

View File

@ -2154,10 +2154,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);
}