diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-10-03 11:36:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 11:36:01 +0200 |
commit | 90f4e76a463713826b81a768444ce318dcdb3aa0 (patch) | |
tree | de75c67730505a1f69a5cc885cc136fd7c0a505b /platform/windows/os_windows.cpp | |
parent | cf4693cf18ec6ccdd3ccb4e416d3520efbf26010 (diff) | |
parent | 66dac878ac9fc278044281b7f67fbed668e4523d (diff) |
Merge pull request #6479 from RandomShaper/improve-debug-focus
Improve debug focus behavior
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r-- | platform/windows/os_windows.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index f38bda5899..35d90a8308 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); } |