diff --git a/Desktop_Interface/mainwindow.cpp b/Desktop_Interface/mainwindow.cpp index 4137bcf2..c9add390 100644 --- a/Desktop_Interface/mainwindow.cpp +++ b/Desktop_Interface/mainwindow.cpp @@ -160,7 +160,8 @@ MainWindow::MainWindow(QWidget *parent) : ui->realTimeButton->setVisible(false); - this->setGeometry(0, 0, 800, 600); + if ((QApplication::desktop()->availableGeometry().x() < this->geometry().x()) || QApplication::desktop()->availableGeometry().y() < this->geometry().y()) + this->setGeometry(0, 0, 800, 600); } MainWindow::~MainWindow()