Fix close-popup ImGui stack imbalance, stale region hover, shared resize chord state, window properties leak

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 18:58:30 -04:00
1 parent c04a685f18
commit 146e5d4ff1
5 files changed
+13 -19

No files matched your search

+1 -1
View File
@@ -244,6 +244,7 @@ namespace anm2ed::imgui
drawList->AddRectFilled(min, max, ImGui::GetColorU32(to_imvec4(vec4(backgroundColor, 1.0f))));
image_premultiplied_draw(this->texture, to_imvec2(size));
hoveredRegionId = -1;
if (ImGui::IsItemHovered())
{
auto input = canvas_input_get(manager, isFocused);
@@ -301,7 +302,6 @@ namespace anm2ed::imgui
if (tool == tool::DRAW && input.isRightDown) useTool = tool::ERASE;
if (tool == tool::ERASE && input.isRightDown) useTool = tool::DRAW;
hoveredRegionId = -1;
if (useTool == tool::PAN && spritesheet && texture && texture->is_valid() && isMouseOverCanvas)
for (auto& region : spritesheet->regions)
{