diff --git a/src/calamares/CalamaresApplication.cpp b/src/calamares/CalamaresApplication.cpp
index e042db3b5..5150f8287 100644
--- a/src/calamares/CalamaresApplication.cpp
+++ b/src/calamares/CalamaresApplication.cpp
@@ -15,8 +15,6 @@
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
*/
-
-#include
#include
#include "CalamaresApplication.h"
@@ -195,13 +193,9 @@ CalamaresApplication::onPluginsReady()
this, &CalamaresApplication::startPhase );
startPhase( Calamares::Prepare );
- m_mainwindow->setGeometry(
- QStyle::alignedRect(
- Qt::LeftToRight,
- Qt::AlignCenter,
- m_mainwindow->size(),
- this->desktop()->availableGeometry()
- ));
+ m_mainwindow->move(
+ this->desktop()->availableGeometry().center() - m_mainwindow->rect().center()
+ );
}