Browse Source

Docking: Forward WindowClass from node to host window.

omar 6 years ago
parent
commit
5aebfedfad
1 changed files with 1 additions and 0 deletions
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -10952,6 +10952,7 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node)
             }
             }
             if (node->InitFromFirstWindowViewport && node->Windows.Size > 0)
             if (node->InitFromFirstWindowViewport && node->Windows.Size > 0)
                 SetNextWindowViewport(node->Windows[0]->ViewportId);
                 SetNextWindowViewport(node->Windows[0]->ViewportId);
+            SetNextWindowClass(&node->WindowClass);
 
 
             // Begin into the host window
             // Begin into the host window
             char window_label[20];
             char window_label[20];