Timeline: per-frame work runs once, not once per row

Escape, the context menu (and its shortcuts), frame resize drags and the
frame-move drop now run once from frames_child instead of inside every
row's child. draw() hands popups and global shortcuts to popups_update()
and shortcuts_update(). Drops a dead style push/pop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 19:01:40 -04:00
1 parent 146e5d4ff1
commit 69e78ff77a
6 files changed
+168 -155

No files matched your search

+2 -1
View File
@@ -86,7 +86,8 @@ namespace anm2ed::imgui
int = ACTION_COUNT);
void actions_undo_redo_add(Actions&, Manager&, Document&);
void actions_menu_draw(Actions&, Settings&);
bool actions_context_window_draw(const char*, Actions&, Settings&, ImGuiPopupFlags = ImGuiPopupFlags_MouseButtonRight);
bool actions_context_window_draw(const char*, Actions&, Settings&, ImGuiPopupFlags = ImGuiPopupFlags_MouseButtonRight,
ImGuiHoveredFlags = ImGuiHoveredFlags_None);
bool actions_popup_draw(const char*, Actions&, Settings&);
void actions_shortcuts_update(Actions&, Manager&, types::shortcut::Type = types::shortcut::FOCUSED);
void action_button_draw(Action&, Manager&, Settings&, ImVec2, bool&);