From c09d63d1928a27879487ef78e0adc6fc02b41c30 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 7 May 2014 15:42:42 +0200 Subject: [PATCH] set QSG_RENDER_LOOP as basic if not explicitly set --- main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.cpp b/main.cpp index 2b57a20511..cabdbaab11 100644 --- a/main.cpp +++ b/main.cpp @@ -413,6 +413,11 @@ KWIN_EXPORT int kdemain(int argc, char * argv[]) mallopt(M_TRIM_THRESHOLD, 5*pagesize); #endif // M_TRIM_THRESHOLD + const QByteArray loopName = qgetenv("QSG_RENDER_LOOP"); + if (loopName.isEmpty()) { + setenv("QSG_RENDER_LOOP", "basic", 1); + } + KLocalizedString::setApplicationDomain("kwin"); QLoggingCategory::setFilterRules(QStringLiteral("aurorae.debug = true\n") + QStringLiteral("kwineffects.debug = true"));