[effects/presentwindows] Darken panel

This commit is contained in:
Felipe Kinoshita 2021-04-25 17:45:49 -03:00
parent e9fcd9584e
commit 64c721579d
No known key found for this signature in database
GPG key ID: E5FF0D0C1A82B6A1

View file

@ -385,6 +385,7 @@ void PresentWindowsEffect::paintWindow(EffectWindow *w, int mask, QRegion region
DataHash::const_iterator winData = m_windowData.constFind(w);
if (winData == m_windowData.constEnd() || (w->isDock() && m_showPanel)) {
// in case the panel should be shown just display it without any changes
data.multiplyBrightness(interpolate(0.40, 1.0, winData->highlight));
effects->paintWindow(w, mask, region, data);
return;
}