Skip to content

Commit

Permalink
adjust auto-focus-on-stop rules; only do it given stops caused by thr…
Browse files Browse the repository at this point in the history
…eads
  • Loading branch information
ryanfleury committed Dec 2, 2024
1 parent a827c74 commit 7400432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raddbg/raddbg_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -16528,8 +16528,8 @@ rd_frame(void)
}
}

// rjf: focus window if none focused
if(need_refocus)
// rjf: focus window if none focused, and if we have a thread to snap to
if(need_refocus && (selected_thread != &ctrl_entity_nil || thread != &ctrl_entity_nil))
{
B32 any_window_is_focused = 0;
for(RD_Window *window = rd_state->first_window; window != 0; window = window->next)
Expand Down

0 comments on commit 7400432

Please sign in to comment.