浏览代码

Double-clicking on resize grip doesn't keep grip active if mouse button is kept held.

ocornut 10 年之前
父节点
当前提交
2d81a73f85
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -3056,6 +3056,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size, float bg
                         window->SizeFull = size_auto_fit;
                         window->SizeFull = size_auto_fit;
                         if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings))
                         if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings))
                             MarkSettingsDirty();
                             MarkSettingsDirty();
+                        SetActiveId(0);
                     }
                     }
                     else if (held)
                     else if (held)
                     {
                     {