Paste P385

Masterwork From Distant Lands
ActivePublic

Authored by davidedmundson on May 8 2019, 7:00 PM.
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 <http://www.gnu.org/licenses/>.
#include <QPushButton>
#include <QVBoxLayout>
#include <QX11Info>
+#include <QSurfaceFormat>
// 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"));
davidedmundson edited the content of this paste. (Show Details)May 8 2019, 7:00 PM
davidedmundson changed the title of this paste from untitled to Masterwork From Distant Lands.