From a2ed8cb9dae9687da90eb47f2fe33847343483a9 Mon Sep 17 00:00:00 2001 From: Felipe Kinoshita Date: Thu, 29 Apr 2021 01:14:56 -0300 Subject: [PATCH] [effects/presentwindows] add a comment explaining why we are darkening the panel --- src/effects/presentwindows/presentwindows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/presentwindows/presentwindows.cpp b/src/effects/presentwindows/presentwindows.cpp index cf26f3b0ef..5c1df45198 100644 --- a/src/effects/presentwindows/presentwindows.cpp +++ b/src/effects/presentwindows/presentwindows.cpp @@ -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;