Internals: ParentWindow is now NULL for non-child windows and means what everyone expects.

This commit is contained in:
omar
2017-12-12 00:48:28 +01:00
parent f42d7b89e2
commit c65124f415
2 changed files with 8 additions and 7 deletions

View File

@ -746,7 +746,7 @@ struct IMGUI_API ImGuiWindow
ImGuiStorage StateStorage;
float FontWindowScale; // Scale multiplier per-window
ImDrawList* DrawList;
ImGuiWindow* ParentWindow; // Immediate parent in the window stack *regardless* of whether this window is a child window or not)
ImGuiWindow* ParentWindow; // If we are a child window, this is pointing to our parent.
ImGuiWindow* RootWindow; // Generally point to ourself. If we are a child window, this is pointing to the first non-child parent window.
ImGuiWindow* RootNonPopupWindow; // Generally point to ourself. Used to display TitleBgActive color and for selecting which window to use for NavWindowing