the effect watcher is not blur specific

This commit is contained in:
Aaron Seigo 2011-12-08 11:04:12 +01:00
parent fe2286c5da
commit 359cc3d68a
3 changed files with 4 additions and 5 deletions

View File

@ -58,7 +58,7 @@ bool EffectWatcher::x11Event(XEvent *event)
bool nowEffectActive = isEffectActive();
if (m_effectActive != nowEffectActive) {
m_effectActive = nowEffectActive;
emit blurBehindChanged(m_effectActive);
emit effectChanged(m_effectActive);
}
}
}

View File

@ -41,7 +41,7 @@ protected:
#endif
Q_SIGNALS:
void blurBehindChanged(bool blur);
void effectChanged(bool on);
private:
QString m_property;
@ -50,4 +50,4 @@ private:
}
#endif
#endif

View File

@ -101,9 +101,8 @@ public:
QObject::connect(KWindowSystem::self(), SIGNAL(compositingChanged(bool)), q, SLOT(compositingChanged(bool)));
#ifdef Q_WS_X11
//watch for blur effect property changes as well
effectWatcher = 0;
effectWatcher = new EffectWatcher("_KDE_NET_WM_BLUR_BEHIND_REGION");
QObject::connect(effectWatcher, SIGNAL(blurBehindChanged(bool)), q, SLOT(blurBehindChanged(bool)));
QObject::connect(effectWatcher, SIGNAL(effectChanged(bool)), q, SLOT(blurBehindChanged(bool)));
#endif
}