Fix debugger focus stealing
At least on Windows, the authorization must be given every time, not only at startup.
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user