diff --git a/main_x11.cpp b/main_x11.cpp
index c83b8240b..17b6060e4 100644
--- a/main_x11.cpp
+++ b/main_x11.cpp
@@ -45,6 +45,7 @@ along with this program. If not, see .
#include
#include
#include
+#include
// system
#ifdef HAVE_UNISTD_H
@@ -416,6 +417,9 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
KWin::Application::createAboutData();
KQuickAddons::QtQuickSettings::init();
+ QSurfaceFormat format = QSurfaceFormat::defaultFormat();
+ format.setSwapInterval(0);
+ QSurfaceFormat::setDefaultFormat(format);
QCommandLineOption replaceOption(QStringLiteral("replace"), i18n("Replace already-running ICCCM2.0-compliant window manager"));