[effects/presentwindows] add a comment explaining why we are darkening the panel

This commit is contained in:
Felipe Kinoshita 2021-04-29 01:14:56 -03:00
parent 1c6be7e32c
commit a2ed8cb9da
No known key found for this signature in database
GPG key ID: E5FF0D0C1A82B6A1

View file

@ -384,7 +384,7 @@ void PresentWindowsEffect::paintWindow(EffectWindow *w, int mask, QRegion region
if (m_activated || m_motionManager.areWindowsMoving()) {
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
// we are darkening the panel to communicate that it's not interactive
data.multiplyBrightness(interpolate(0.40, 1.0, winData->highlight));
effects->paintWindow(w, mask, region, data);
return;