FallApart effect requires OpenGL

It does quad transformations which is only supported in the OpenGL
compositor.

REVIEW: 111176
This commit is contained in:
Martin Gräßlin 2013-06-22 16:09:14 +02:00
parent 502d003ef5
commit d3ba02fa42
3 changed files with 10 additions and 0 deletions

View file

@ -28,6 +28,12 @@ namespace KWin
{
KWIN_EFFECT(fallapart, FallApartEffect)
KWIN_EFFECT_SUPPORTED(fallapart, FallApartEffect::supported())
bool FallApartEffect::supported()
{
return effects->isOpenGLCompositing();
}
FallApartEffect::FallApartEffect()
{

View file

@ -161,3 +161,4 @@ X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=false
X-KDE-Library=kwin4_effect_builtins
X-KDE-Ordering=70
X-KWin-Requires-OpenGL=true

View file

@ -44,6 +44,9 @@ public:
int configuredBlockSize() const {
return blockSize;
}
static bool supported();
public Q_SLOTS:
void slotWindowClosed(KWin::EffectWindow *c);
void slotWindowDeleted(KWin::EffectWindow *w);