the effect watcher is not blur specific
This commit is contained in:
parent
fe2286c5da
commit
359cc3d68a
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user