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( magiclamp, MagicLampEffect )
|
||||||
|
KWIN_EFFECT_SUPPORTED( magiclamp, MagicLampEffect::supported() )
|
||||||
|
|
||||||
MagicLampEffect::MagicLampEffect()
|
MagicLampEffect::MagicLampEffect()
|
||||||
{
|
{
|
||||||
|
@ -35,6 +36,11 @@ MagicLampEffect::MagicLampEffect()
|
||||||
reconfigure( ReconfigureAll );
|
reconfigure( ReconfigureAll );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool MagicLampEffect::supported()
|
||||||
|
{
|
||||||
|
return effects->compositingType() == OpenGLCompositing;
|
||||||
|
}
|
||||||
|
|
||||||
void MagicLampEffect::reconfigure( ReconfigureFlags )
|
void MagicLampEffect::reconfigure( ReconfigureFlags )
|
||||||
{
|
{
|
||||||
KConfigGroup conf = effects->effectConfig( "MagicLamp" );
|
KConfigGroup conf = effects->effectConfig( "MagicLamp" );
|
||||||
|
|
|
@ -41,6 +41,8 @@ class MagicLampEffect
|
||||||
virtual void windowMinimized( EffectWindow* c );
|
virtual void windowMinimized( EffectWindow* c );
|
||||||
virtual void windowUnminimized( EffectWindow* c );
|
virtual void windowUnminimized( EffectWindow* c );
|
||||||
|
|
||||||
|
static bool supported();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QHash< EffectWindow*, TimeLine > mTimeLineWindows;
|
QHash< EffectWindow*, TimeLine > mTimeLineWindows;
|
||||||
int mActiveAnimations;
|
int mActiveAnimations;
|
||||||
|
|
Loading…
Reference in a new issue