Prevent wobbly windows from being enabled while in XRender mode.

svn path=/trunk/KDE/kdebase/workspace/; revision=926396
This commit is contained in:
Lucas Murray 2009-02-15 10:34:46 +00:00
parent f5790fcce1
commit 3f5a338234
2 changed files with 7 additions and 0 deletions

View file

@ -166,6 +166,7 @@ static const ParameterSet set_4 =
static const ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 }; static const ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 };
KWIN_EFFECT(wobblywindows, WobblyWindowsEffect) KWIN_EFFECT(wobblywindows, WobblyWindowsEffect)
KWIN_EFFECT_SUPPORTED(wobblywindows, WobblyWindowsEffect::supported())
WobblyWindowsEffect::WobblyWindowsEffect() WobblyWindowsEffect::WobblyWindowsEffect()
{ {
@ -245,6 +246,10 @@ void WobblyWindowsEffect::reconfigure( ReconfigureFlags )
#endif #endif
} }
bool WobblyWindowsEffect::supported()
{
return effects->compositingType() == OpenGLCompositing;
}
void WobblyWindowsEffect::setParameterSet(const ParameterSet& pset) void WobblyWindowsEffect::setParameterSet(const ParameterSet& pset)
{ {

View file

@ -58,6 +58,8 @@ class WobblyWindowsEffect : public Effect
Closing Closing
}; };
static bool supported();
private: private:
bool updateWindowWobblyDatas(EffectWindow* w, qreal time); bool updateWindowWobblyDatas(EffectWindow* w, qreal time);