From 4f1f76a2d336f560ddc6aa5c01f67ceb42ddcbee Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 11 Aug 2011 20:48:28 +0000 Subject: Fix kompmgr in the following ways: 1. Repair spurious crash dialog 2. Make kompmgr start if enabled when Apply is clicked in KCM 3. Fix flickering and general graphical ickiness on desktop switch 4. Fix flickering on root pixmap change git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246518 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kwin/kcmkwin/kwinoptions/windows.cpp | 11 +++++++++++ kwin/kcmkwin/kwinoptions/windows.h | 1 + 2 files changed, 12 insertions(+) (limited to 'kwin/kcmkwin/kwinoptions') diff --git a/kwin/kcmkwin/kwinoptions/windows.cpp b/kwin/kcmkwin/kwinoptions/windows.cpp index 69041c702..b5039b43c 100644 --- a/kwin/kcmkwin/kwinoptions/windows.cpp +++ b/kwin/kcmkwin/kwinoptions/windows.cpp @@ -1616,6 +1616,8 @@ void KTranslucencyConfig::save( void ) kapp->dcopClient()->attach(); kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString("")); } + if (useTranslucency->isChecked()) + startKompmgr(); emit KCModule::changed(false); } @@ -1669,6 +1671,15 @@ bool KTranslucencyConfig::kompmgrAvailable() return ret; } +void KTranslucencyConfig::startKompmgr() +{ + bool ret; + KProcess proc; + proc << "kompmgr"; + ret = proc.start(KProcess::DontCare, KProcess::AllOutput); + proc.detach(); +} + void KTranslucencyConfig::showWarning(bool alphaActivated) { // if (alphaActivated) diff --git a/kwin/kcmkwin/kwinoptions/windows.h b/kwin/kcmkwin/kwinoptions/windows.h index 83dc70b66..338860efe 100644 --- a/kwin/kcmkwin/kwinoptions/windows.h +++ b/kwin/kcmkwin/kwinoptions/windows.h @@ -283,6 +283,7 @@ private: bool alphaActivated; bool resetKompmgr_; bool kompmgrAvailable(); + void startKompmgr(); bool kompmgrAvailable_; KProcess *kompmgr; -- cgit v1.2.1