part 2: furthered progress on cfg switch

This commit is contained in:
Ryan Fleury committed 2025-01-10 12:56:53 -08:00
1 parent 6ce8046029
commit d9ca51b36f
9 files changed
+760 -644

No files matched your search

+3 -2
View File
@@ -343,8 +343,9 @@ rd_cmd_list_menu_buttons(U64 count, String8 *cmd_names, U32 *fastpath_codepoints
{
rd_cmd(RD_CmdKind_RunCommand, .cmd_name = cmd_names[idx]);
ui_ctx_menu_close();
RD_Window *window = rd_window_from_handle(rd_regs()->window);
window->menu_bar_focused = 0;
RD_Cfg *window = rd_cfg_from_handle(rd_regs()->window);
RD_WindowState *ws = rd_window_state_from_cfg(window);
ws->menu_bar_focused = 0;
}
}
scratch_end(scratch);