From 3f5a338234ac009e58f2047384007dcf932f71aa Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Sun, 15 Feb 2009 10:34:46 +0000 Subject: [PATCH] Prevent wobbly windows from being enabled while in XRender mode. svn path=/trunk/KDE/kdebase/workspace/; revision=926396 --- effects/wobblywindows/wobblywindows.cpp | 5 +++++ effects/wobblywindows/wobblywindows.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/effects/wobblywindows/wobblywindows.cpp b/effects/wobblywindows/wobblywindows.cpp index 586eb0c971..d93eb23ff5 100644 --- a/effects/wobblywindows/wobblywindows.cpp +++ b/effects/wobblywindows/wobblywindows.cpp @@ -166,6 +166,7 @@ static const ParameterSet set_4 = static const ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 }; KWIN_EFFECT(wobblywindows, WobblyWindowsEffect) +KWIN_EFFECT_SUPPORTED(wobblywindows, WobblyWindowsEffect::supported()) WobblyWindowsEffect::WobblyWindowsEffect() { @@ -245,6 +246,10 @@ void WobblyWindowsEffect::reconfigure( ReconfigureFlags ) #endif } +bool WobblyWindowsEffect::supported() + { + return effects->compositingType() == OpenGLCompositing; + } void WobblyWindowsEffect::setParameterSet(const ParameterSet& pset) { diff --git a/effects/wobblywindows/wobblywindows.h b/effects/wobblywindows/wobblywindows.h index 8bbb7b2420..2ab25b08cc 100644 --- a/effects/wobblywindows/wobblywindows.h +++ b/effects/wobblywindows/wobblywindows.h @@ -58,6 +58,8 @@ class WobblyWindowsEffect : public Effect Closing }; + static bool supported(); + private: bool updateWindowWobblyDatas(EffectWindow* w, qreal time);