diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index ce8b73b523..30b01a4298 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -28,8 +28,10 @@ namespace KWin { + KWIN_EFFECT(blur, BlurEffect) KWIN_EFFECT_SUPPORTED(blur, BlurEffect::supported()) +KWIN_EFFECT_ENABLEDBYDEFAULT(blur, BlurEffect::enabledByDefault()) BlurEffect::BlurEffect() @@ -119,6 +121,16 @@ void BlurEffect::slotPropertyNotify(EffectWindow *w, long atom) updateBlurRegion(w); } +bool BlurEffect::enabledByDefault() +{ + GLPlatform *gl = GLPlatform::instance(); + + if (gl->isIntel()) + return false; + + return true; +} + bool BlurEffect::supported() { bool supported = GLRenderTarget::supported() && GLTexture::NPOTTextureSupported() && diff --git a/effects/blur/blur.h b/effects/blur/blur.h index fbe0997411..5cb20ed7f8 100644 --- a/effects/blur/blur.h +++ b/effects/blur/blur.h @@ -21,6 +21,7 @@ #define BLUR_H #include +#include #include #include @@ -39,6 +40,7 @@ public: ~BlurEffect(); static bool supported(); + static bool enabledByDefault(); void reconfigure(ReconfigureFlags flags); void paintScreen(int mask, QRegion region, ScreenPaintData &data);