Docking: Fixed dock node with single window accidental stealing of non-owned host viewport (leading to general havoc).

This commit is contained in:
omar
2018-09-30 19:30:39 +02:00
parent 35d1fb7b34
commit 46dff42239
2 changed files with 7 additions and 2 deletions

View File

@ -657,7 +657,7 @@ struct ImGuiViewportP : public ImGuiViewport
float Alpha; // Window opacity (when dragging dockable windows/viewports we make them transparent)
float LastAlpha;
int PlatformMonitor;
ImGuiWindow* Window;
ImGuiWindow* Window; // Set when the viewport is owned by a window
ImDrawList* OverlayDrawList; // For convenience, a draw list we can render to that's always rendered last (we use it to draw software mouse cursor when io.MouseDrawCursor is set)
ImDrawData DrawDataP;
ImDrawDataBuilder DrawDataBuilder;