Merged changes from "fix window disappearing on undock" for windows build.

This commit is contained in:
Bloody Mess 2021-02-26 20:42:22 -08:00 committed by manongjohn
parent 133f8b4ec8
commit 6a03522d1d

View file

@ -957,6 +957,7 @@ void FullScreenWidget::setWidget(QWidget *widget) {
// application is in the process of quiting.
if (!kfApplicationQuitInProgress)
{
#if !defined( _WIN32 )
//==============================================================
//
// NOTE:
@ -1044,6 +1045,15 @@ void FullScreenWidget::setWidget(QWidget *widget) {
}
}
}
#else
this->setWindowFlags( this->windowFlags() | Qt::Window | Qt::WindowStaysOnTopHint );
// http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows
this->winId();
QWindowsWindowFunctions::setHasBorderInFullScreen( this->windowHandle(), true );
this->showFullScreen();
#endif
// Set the return value to indicate that the full screen mode has been changed.