MagicLamp requires OpenGL.

svn path=/trunk/KDE/kdebase/workspace/; revision=947729
This commit is contained in:
Martin Gräßlin 2009-04-01 09:56:01 +00:00
parent 6898a72415
commit a4a783d94c
2 changed files with 8 additions and 0 deletions

View file

@ -28,6 +28,7 @@ namespace KWin
{
KWIN_EFFECT( magiclamp, MagicLampEffect )
KWIN_EFFECT_SUPPORTED( magiclamp, MagicLampEffect::supported() )
MagicLampEffect::MagicLampEffect()
{
@ -35,6 +36,11 @@ MagicLampEffect::MagicLampEffect()
reconfigure( ReconfigureAll );
}
bool MagicLampEffect::supported()
{
return effects->compositingType() == OpenGLCompositing;
}
void MagicLampEffect::reconfigure( ReconfigureFlags )
{
KConfigGroup conf = effects->effectConfig( "MagicLamp" );

View file

@ -41,6 +41,8 @@ class MagicLampEffect
virtual void windowMinimized( EffectWindow* c );
virtual void windowUnminimized( EffectWindow* c );
static bool supported();
private:
QHash< EffectWindow*, TimeLine > mTimeLineWindows;
int mActiveAnimations;