mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
record & restore target window on runs
This commit is contained in:
@@ -12807,6 +12807,12 @@ rd_frame(void)
|
||||
}
|
||||
}
|
||||
|
||||
// rjf: run -> refocus pre-stop focused window
|
||||
if(kind == RD_CmdKind_Run)
|
||||
{
|
||||
os_focus_external_window(rd_state->prestop_focused_window);
|
||||
}
|
||||
|
||||
// rjf: run -> no active targets, no processes, but we only have one target? -> just launch it, then select it
|
||||
if((kind == RD_CmdKind_Run ||
|
||||
kind == RD_CmdKind_StepInto ||
|
||||
@@ -17071,6 +17077,7 @@ rd_frame(void)
|
||||
}
|
||||
if(ws != &rd_nil_window_state)
|
||||
{
|
||||
rd_state->prestop_focused_window = os_focused_external_window();
|
||||
os_window_set_minimized(ws->os, 0);
|
||||
os_window_bring_to_front(ws->os);
|
||||
os_window_focus(ws->os);
|
||||
|
||||
@@ -705,6 +705,9 @@ struct RD_State
|
||||
B32 bind_change_active;
|
||||
RD_CfgID bind_change_binding_id;
|
||||
String8 bind_change_cmd_name;
|
||||
|
||||
// rjf: pre-stop focused window
|
||||
OS_Handle prestop_focused_window;
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user