Panels: reset shadow pixmaps on theme change

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21033
parent a1903620
......@@ -192,13 +192,17 @@ void PanelShadows::Private::windowDestroyed(QObject *deletedObject)
void PanelShadows::Private::updateShadows()
{
const bool hadShadowsBefore = !m_shadowPixmaps.isEmpty();
// has shadows now?
if (hasShadows()) {
if (hadShadowsBefore) {
clearPixmaps();
}
for (auto i = m_windows.constBegin(); i != m_windows.constEnd(); ++i) {
updateShadow(i.key(), i.value());
}
} else {
const bool hadShadowsBefore = !m_shadowPixmaps.isEmpty();
if (hadShadowsBefore) {
for (auto i = m_windows.constBegin(); i != m_windows.constEnd(); ++i) {
clearShadow(i.key());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment