diff --git a/settings-daemon/application.cpp b/settings-daemon/application.cpp index 5ddbbdb..edbb7b0 100644 --- a/settings-daemon/application.cpp +++ b/settings-daemon/application.cpp @@ -37,17 +37,16 @@ Application::Application(int &argc, char **argv) , m_upowerManager(new UPowerManager(this)) , m_language(new Language(this)) , m_mouse(new Mouse) - , m_kwinTimer(new QTimer(this)) +// , m_kwinTimer(new QTimer(this)) { new DBusAdaptor(this); // connect to D-Bus and register as an object: QDBusConnection::sessionBus().registerService(QStringLiteral("org.cutefish.Settings")); - m_kwinTimer->setSingleShot(false); - m_kwinTimer->setInterval(50); - connect(m_kwinTimer, &QTimer::timeout, this, &Application::initKWin); - m_kwinTimer->start(); - initKWin(); +// m_kwinTimer->setSingleShot(false); +// m_kwinTimer->setInterval(50); +// connect(m_kwinTimer, &QTimer::timeout, this, &Application::initKWin); +// m_kwinTimer->start(); // Translations QLocale locale; @@ -61,8 +60,6 @@ Application::Application(int &argc, char **argv) } } - initKWin(); - QTimer::singleShot(10, this, &Application::invokeDesktopProcess); } @@ -77,27 +74,27 @@ void Application::invokeDesktopProcess() } } -void Application::initKWin() -{ - QDBusInterface effect("org.kde.KWin", "/Effects", "org.kde.kwin.Effects", - QDBusConnection::sessionBus()); +//void Application::initKWin() +//{ +// QDBusInterface effect("org.kde.KWin", "/Effects", "org.kde.kwin.Effects", +// QDBusConnection::sessionBus()); - if (effect.isValid() && !effect.lastError().isValid()) { - // KWin - effect.call("loadEffect", "kwin4_effect_dialogparent"); +// if (effect.isValid() && !effect.lastError().isValid()) { +// // KWin +// effect.call("loadEffect", "kwin4_effect_dialogparent"); - effect.call("unloadEffect", "kwin4_effect_fadingpopups"); - effect.call("unloadEffect", "kwin4_effect_fade"); - effect.call("unloadEffect", "kwin4_effect_scale"); - effect.call("unloadEffect", "kwin4_effect_grayscale"); - effect.call("unloadEffect", "kwin4_effect_squash"); - effect.call("unloadEffect", "kwin4_effect_translucency"); - effect.call("unloadEffect", "magiclamp"); +// effect.call("unloadEffect", "kwin4_effect_fadingpopups"); +// effect.call("unloadEffect", "kwin4_effect_fade"); +// effect.call("unloadEffect", "kwin4_effect_scale"); +// effect.call("unloadEffect", "kwin4_effect_grayscale"); +// effect.call("unloadEffect", "kwin4_effect_squash"); +// effect.call("unloadEffect", "kwin4_effect_translucency"); +// effect.call("unloadEffect", "magiclamp"); - effect.call("loadEffect", "cutefish_popups"); - effect.call("loadEffect", "cutefish_scale"); - effect.call("loadEffect", "cutefish_squash"); +// effect.call("loadEffect", "cutefish_popups"); +// effect.call("loadEffect", "cutefish_scale"); +// effect.call("loadEffect", "cutefish_squash"); - m_kwinTimer->stop(); - } -} +// m_kwinTimer->stop(); +// } +//} diff --git a/settings-daemon/application.h b/settings-daemon/application.h index 81804ac..07f707c 100644 --- a/settings-daemon/application.h +++ b/settings-daemon/application.h @@ -40,7 +40,7 @@ public: AudioManager *audioManager() { return m_audioManager; } void invokeDesktopProcess(); - void initKWin(); +// void initKWin(); private: AudioManager *m_audioManager; @@ -50,7 +50,7 @@ private: Language *m_language; Mouse *m_mouse; - QTimer *m_kwinTimer; +// QTimer *m_kwinTimer; }; #endif // APPLICATION_H