Merged changes from "fix window disappearing on undock" for windows build.
This commit is contained in:
parent
133f8b4ec8
commit
6a03522d1d
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue