Make allowed pid for window takeover happen immediately, fixes #21431
This commit is contained in:
parent
b2f8dd0d55
commit
9d78274e06
3 changed files with 4 additions and 13 deletions
|
|
@ -788,7 +788,6 @@ 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") {
|
||||
|
||||
|
|
@ -1129,6 +1128,10 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
|||
OS::get_singleton()->set_window_always_on_top(true);
|
||||
}
|
||||
|
||||
if (allow_focus_steal_pid) {
|
||||
OS::get_singleton()->enable_for_stealing_focus(allow_focus_steal_pid);
|
||||
}
|
||||
|
||||
register_server_types();
|
||||
|
||||
MAIN_PRINT("Main: Load Remaps");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue