pass boundingRect to background Contrast effect

--fix the strange line at the bottom of the dock
when using the Breeze themes
pull/1/head
Michail Vourlakos 8 years ago
parent 0cc1e84ba8
commit 1554af6f16

@ -1132,11 +1132,15 @@ void DockView::updateEffects()
}
KWindowEffects::enableBlurBehind(winId(), true, fixedMask);
//based on Breeze Dark theme behavior the enableBackgroundContrast even though it does accept
//a QRegion it uses only the first rect. The bug was that for Breeze Dark there was a line
//at the dock bottom that was distinguishing it from other themes
KWindowEffects::enableBackgroundContrast(winId(), m_theme.backgroundContrastEnabled(),
m_theme.backgroundContrast(),
m_theme.backgroundIntensity(),
m_theme.backgroundSaturation(),
fixedMask);
fixedMask.boundingRect());
} else {
KWindowEffects::enableBlurBehind(winId(), false);
KWindowEffects::enableBackgroundContrast(winId(), false);

Loading…
Cancel
Save