From cf0f0cb3258d4ad35a5b84301f563d999e471f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Sun, 13 Jun 2010 20:22:50 +0000 Subject: [PATCH] Disable the glib event loop integration, since it seems to be responsible for several bug reports about high CPU usage. CCBUG: 239963 svn path=/trunk/KDE/kdebase/workspace/; revision=1137645 --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 0d36a9e077..5e23942fe8 100644 --- a/main.cpp +++ b/main.cpp @@ -501,6 +501,10 @@ KDE_EXPORT int kdemain( int argc, char * argv[] ) // HACK: this is needed to work around a Qt4.4.0RC1 bug (#157659) setenv( "QT_SLOW_TOPLEVEL_RESIZE", "1", true ); + // Disable the glib event loop integration, since it seems to be responsible + // for several bug reports about high CPU usage (bug #239963) + setenv( "QT_NO_GLIB", "1", true ); + org::kde::KSMServerInterface ksmserver( "org.kde.ksmserver", "/KSMServer", QDBusConnection::sessionBus()); ksmserver.suspendStartup( "kwin" ); KWin::Application a;