Skip to content

Commit ade30ee

Browse files
committed
LP-303 workaround issue with full screen mode on windows
1 parent 4c9c3c2 commit ade30ee

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ground/gcs/src/plugins/coreplugin/mainwindow.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
#include <QDir>
8989
#include <QMimeData>
9090

91+
#ifdef Q_OS_WIN
92+
#include <QtPlatformHeaders/QWindowsWindowFunctions>
93+
#endif
94+
9195
using namespace Core;
9296
using namespace Core::Internal;
9397

@@ -1337,6 +1341,9 @@ void MainWindow::setFullScreen(bool on)
13371341
}
13381342

13391343
if (on) {
1344+
#ifdef Q_OS_WIN
1345+
QWindowsWindowFunctions::setHasBorderInFullScreen(windowHandle(), true);
1346+
#endif
13401347
setWindowState(windowState() | Qt::WindowFullScreen);
13411348
} else {
13421349
setWindowState(windowState() & ~Qt::WindowFullScreen);

0 commit comments

Comments
 (0)