adjust auto-focus-on-stop rules; only do it given stops caused by threads

This commit is contained in:
Ryan Fleury
2024-12-02 10:01:58 -08:00
parent a827c74501
commit 74004321aa
+2 -2
View File
@@ -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)