diff --git a/src/core/UBDisplayManager.cpp b/src/core/UBDisplayManager.cpp index 1d441adb..140dc875 100644 --- a/src/core/UBDisplayManager.cpp +++ b/src/core/UBDisplayManager.cpp @@ -146,6 +146,11 @@ void UBDisplayManager::setDisplayWidget(QWidget* pDisplayWidget) { if(pDisplayWidget && (pDisplayWidget != mDisplayWidget)) { + if (mDisplayWidget) + { + pDisplayWidget->setGeometry(mDisplayWidget->geometry()); + pDisplayWidget->setWindowFlags(mDisplayWidget->windowFlags()); + } mDisplayWidget = pDisplayWidget; // !!!! Should be included into Windows after QT recompilation #ifdef Q_WS_MAC