From 74004321aace1cd9010daaea60024c6b7002840e Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 2 Dec 2024 10:01:58 -0800 Subject: [PATCH] adjust auto-focus-on-stop rules; only do it given stops caused by threads --- src/raddbg/raddbg_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index 70499e21..c86f45f0 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -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)