mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
LP-303 workaround issue with full screen mode on windows
This commit is contained in:
parent
4c9c3c202c
commit
ade30ee3b0
@ -88,6 +88,10 @@
|
||||
#include <QDir>
|
||||
#include <QMimeData>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <QtPlatformHeaders/QWindowsWindowFunctions>
|
||||
#endif
|
||||
|
||||
using namespace Core;
|
||||
using namespace Core::Internal;
|
||||
|
||||
@ -1337,6 +1341,9 @@ void MainWindow::setFullScreen(bool on)
|
||||
}
|
||||
|
||||
if (on) {
|
||||
#ifdef Q_OS_WIN
|
||||
QWindowsWindowFunctions::setHasBorderInFullScreen(windowHandle(), true);
|
||||
#endif
|
||||
setWindowState(windowState() | Qt::WindowFullScreen);
|
||||
} else {
|
||||
setWindowState(windowState() & ~Qt::WindowFullScreen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user