diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2018-05-28 21:49:48 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2018-05-28 21:49:48 +0200 |
commit | 2fcbf9dd8105940cefecb9c1d666bf3002869996 (patch) | |
tree | b18fbe505074eb1fca7924bc0f8a7e31c9f3bbca /main | |
parent | 4a98b1575bd0b890e834c54a2216f839e9540543 (diff) |
Fix debugger focus stealing
At least on Windows, the authorization must be given every time, not only at startup.
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main/main.cpp b/main/main.cpp index 1c5540fd19..954e143b83 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -726,6 +726,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph memdelete(sdr); } else { script_debugger = sdr; + sdr->set_allow_focus_steal_pid(allow_focus_steal_pid); } } else if (debug_mode == "local") { @@ -1188,10 +1189,6 @@ Error Main::setup2(Thread::ID p_main_tid_override) { #endif - if (allow_focus_steal_pid) { - OS::get_singleton()->enable_for_stealing_focus(allow_focus_steal_pid); - } - MAIN_PRINT("Main: Load Modules, Physics, Drivers, Scripts"); register_platform_apis(); |