From cfbda8bc4d77129dd25e0a191744bb2d897c5ee9 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Wed, 13 May 2026 11:57:03 -0700 Subject: [PATCH] clear last-focused-external-window on new session --- src/raddbg/raddbg_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index 3a694463..dae9b8da 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -16329,6 +16329,7 @@ rd_frame(void) D_EntityArray all_processes = d_entity_array_from_kind(&d_user_state->ctrl_entity_store->ctx, D_EntityKind_Process); if(all_processes.count == 1) { + MemoryZeroStruct(&rd_state->prestop_focused_window); CFG_NodePtrList dbg_infos = cfg_node_top_level_list_from_string(scratch.arena, str8_lit("debug_info")); for EachNode(n, CFG_NodePtrNode, dbg_infos.first) {