|
|
@@ -11,6 +11,7 @@ namespace BansheeEngine
|
|
|
{
|
|
|
updateSize();
|
|
|
|
|
|
+ mWidgets->onWidgetAdded.connect(std::bind(&EditorWindow::widgetAdded, this));
|
|
|
mWidgets->onWidgetClosed.connect(std::bind(&EditorWindow::widgetRemoved, this));
|
|
|
}
|
|
|
|
|
|
@@ -43,6 +44,11 @@ namespace BansheeEngine
|
|
|
Platform::setCaptionNonClientAreas(*mRenderWindow->getCore().get(), mWidgets->getDraggableAreas());
|
|
|
}
|
|
|
|
|
|
+ void EditorWindow::widgetAdded()
|
|
|
+ {
|
|
|
+ Platform::setCaptionNonClientAreas(*mRenderWindow->getCore().get(), mWidgets->getDraggableAreas());
|
|
|
+ }
|
|
|
+
|
|
|
void EditorWindow::widgetRemoved()
|
|
|
{
|
|
|
if(mWidgets->getNumWidgets() == 0)
|