MagicLamp requires OpenGL.
svn path=/trunk/KDE/kdebase/workspace/; revision=947729
This commit is contained in:
parent
6898a72415
commit
a4a783d94c
2 changed files with 8 additions and 0 deletions
|
@ -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" );
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue