From 93dc4d459c70d109e8ba89f883ea99e63242197e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Sat, 14 May 2011 18:26:21 +0200 Subject: [PATCH] kwin/blur: Don't blur anything when we're painting top-to-bottom --- effects/blur/blur.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index c55064e61b..8a50e07e0c 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -310,6 +310,12 @@ bool BlurEffect::shouldBlur(const EffectWindow *w, int mask, const WindowPaintDa if (!target->valid() || !shader->isValid()) return false; + // Don't blur anything if we're painting top-to-bottom + if (!(mask & (PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS_WITHOUT_FULL_REPAINTS | + PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS | + PAINT_SCREEN_TRANSFORMED))) + return false; + if (effects->activeFullScreenEffect() && !w->data(WindowForceBlurRole).toBool()) return false;