respect WindowForceBlurRole or forcecontrast
even if scaled or translated, if WindowForceBlurRole is set do the blur anyways same thing for backgroundcontrast reviewed by: Martin Gräßlin <mgraesslin@kde.org>
This commit is contained in:
parent
ed7bf6e091
commit
f7feca678d
2 changed files with 2 additions and 2 deletions
|
@ -356,7 +356,7 @@ bool ContrastEffect::shouldContrast(const EffectWindow *w, int mask, const Windo
|
||||||
bool scaled = !qFuzzyCompare(data.xScale(), 1.0) && !qFuzzyCompare(data.yScale(), 1.0);
|
bool scaled = !qFuzzyCompare(data.xScale(), 1.0) && !qFuzzyCompare(data.yScale(), 1.0);
|
||||||
bool translated = data.xTranslation() || data.yTranslation();
|
bool translated = data.xTranslation() || data.yTranslation();
|
||||||
|
|
||||||
if (scaled || ((translated || (mask & PAINT_WINDOW_TRANSFORMED)) && !w->data(WindowForceBackgroundContrastRole).toBool()))
|
if ((scaled || (translated || (mask & PAINT_WINDOW_TRANSFORMED))) && !w->data(WindowForceBackgroundContrastRole).toBool())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!w->hasAlpha())
|
if (!w->hasAlpha())
|
||||||
|
|
|
@ -417,7 +417,7 @@ bool BlurEffect::shouldBlur(const EffectWindow *w, int mask, const WindowPaintDa
|
||||||
bool scaled = !qFuzzyCompare(data.xScale(), 1.0) && !qFuzzyCompare(data.yScale(), 1.0);
|
bool scaled = !qFuzzyCompare(data.xScale(), 1.0) && !qFuzzyCompare(data.yScale(), 1.0);
|
||||||
bool translated = data.xTranslation() || data.yTranslation();
|
bool translated = data.xTranslation() || data.yTranslation();
|
||||||
|
|
||||||
if (scaled || ((translated || (mask & PAINT_WINDOW_TRANSFORMED)) && !w->data(WindowForceBlurRole).toBool()))
|
if ((scaled || (translated || (mask & PAINT_WINDOW_TRANSFORMED))) && !w->data(WindowForceBlurRole).toBool())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
bool blurBehindDecos = effects->decorationsHaveAlpha() &&
|
bool blurBehindDecos = effects->decorationsHaveAlpha() &&
|
||||||
|
|
Loading…
Reference in a new issue