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 /core/script_debugger_remote.h | |
parent | 4a98b1575bd0b890e834c54a2216f839e9540543 (diff) | |
download | redot-engine-2fcbf9dd8105940cefecb9c1d666bf3002869996.tar.gz |
Fix debugger focus stealing
At least on Windows, the authorization must be given every time, not only at startup.
Diffstat (limited to 'core/script_debugger_remote.h')
-rw-r--r-- | core/script_debugger_remote.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/script_debugger_remote.h b/core/script_debugger_remote.h index cc12d978d6..b68fc4f9c9 100644 --- a/core/script_debugger_remote.h +++ b/core/script_debugger_remote.h @@ -34,6 +34,7 @@ #include "io/packet_peer.h" #include "io/stream_peer_tcp.h" #include "list.h" +#include "os/os.h" #include "script_language.h" class ScriptDebuggerRemote : public ScriptDebugger { @@ -98,6 +99,8 @@ class ScriptDebuggerRemote : public ScriptDebugger { uint64_t last_msec; uint64_t msec_count; + OS::ProcessID allow_focus_steal_pid; + bool locking; //hack to avoid a deadloop static void _print_handler(void *p_this, const String &p_string, bool p_error); @@ -171,6 +174,8 @@ public: virtual void profiling_end(); virtual void profiling_set_frame_times(float p_frame_time, float p_idle_time, float p_physics_time, float p_physics_frame_time); + void set_allow_focus_steal_pid(OS::ProcessID p_pid); + ScriptDebuggerRemote(); ~ScriptDebuggerRemote(); }; |