Forward port rev 1169158: Exclude all transformed windows from blur effect.

Currently only scaled or translated windows were excluded,
but it is possible to also have windows with just changed
window quads (e.g. magic lamp).
CCBUG: 243693

svn path=/trunk/KDE/kdebase/workspace/; revision=1169160
icc-effect-5.14.5
Martin Gräßlin 2010-08-28 14:39:41 +00:00
parent 8c2c23697b
commit 4c6f8d9c28
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ void BlurEffect::drawWindow(EffectWindow *w, int mask, QRegion region, WindowPai
const QRect screen(0, 0, displayWidth(), displayHeight());
bool scaled = !qFuzzyCompare(data.xScale, 1.0) && !qFuzzyCompare(data.yScale, 1.0);
bool translated = data.xTranslate || data.yTranslate;
bool transformed = scaled || translated;
bool transformed = scaled || translated || mask & PAINT_WINDOW_TRANSFORMED;
bool hasAlpha = w->hasAlpha() || (w->hasDecoration() && effects->decorationsHaveAlpha());
bool valid = target->valid() && shader->isValid();