Merge pull request #19229 from RandomShaper/fix-focus-steal

Fix debugger focus stealing
This commit is contained in:
Max Hilbrunner
2018-07-05 00:27:08 +02:00
committed by GitHub
3 changed files with 15 additions and 4 deletions

View File

@@ -715,6 +715,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") {
@@ -1179,10 +1180,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();