diff --git a/gui/qt/settings.cpp b/gui/qt/settings.cpp index 8bb4cfb62..054ca19bd 100644 --- a/gui/qt/settings.cpp +++ b/gui/qt/settings.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -907,7 +908,7 @@ void MainWindow::setFullscreen(int value) { ui->lcd->setParent(this); ui->lcd->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); // The order here is important, must move to the new screen before setting window flags - ui->lcd->setGeometry(screen()->availableGeometry()); + ui->lcd->setGeometry(windowHandle()->screen()->availableGeometry()); ui->lcd->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::CustomizeWindowHint); ui->lcd->showFullScreen(); ui->lcd->installEventFilter(keypadBridge);