Changeset View
Changeset View
Standalone View
Standalone View
shell/panelshadows.cpp
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Line(s) | 185 | { | |||
---|---|---|---|---|---|
187 | 187 | | |||
188 | if (m_windows.isEmpty()) { | 188 | if (m_windows.isEmpty()) { | ||
189 | clearPixmaps(); | 189 | clearPixmaps(); | ||
190 | } | 190 | } | ||
191 | } | 191 | } | ||
192 | 192 | | |||
193 | void PanelShadows::Private::updateShadows() | 193 | void PanelShadows::Private::updateShadows() | ||
194 | { | 194 | { | ||
195 | const bool hadShadowsBefore = !m_shadowPixmaps.isEmpty(); | ||||
196 | | ||||
195 | // has shadows now? | 197 | // has shadows now? | ||
196 | if (hasShadows()) { | 198 | if (hasShadows()) { | ||
199 | if (hadShadowsBefore) { | ||||
200 | clearPixmaps(); | ||||
201 | } | ||||
197 | for (auto i = m_windows.constBegin(); i != m_windows.constEnd(); ++i) { | 202 | for (auto i = m_windows.constBegin(); i != m_windows.constEnd(); ++i) { | ||
198 | updateShadow(i.key(), i.value()); | 203 | updateShadow(i.key(), i.value()); | ||
199 | } | 204 | } | ||
200 | } else { | 205 | } else { | ||
201 | const bool hadShadowsBefore = !m_shadowPixmaps.isEmpty(); | | |||
202 | if (hadShadowsBefore) { | 206 | if (hadShadowsBefore) { | ||
203 | for (auto i = m_windows.constBegin(); i != m_windows.constEnd(); ++i) { | 207 | for (auto i = m_windows.constBegin(); i != m_windows.constEnd(); ++i) { | ||
204 | clearShadow(i.key()); | 208 | clearShadow(i.key()); | ||
205 | } | 209 | } | ||
206 | clearPixmaps(); | 210 | clearPixmaps(); | ||
207 | } | 211 | } | ||
208 | } | 212 | } | ||
209 | } | 213 | } | ||
▲ Show 20 Lines • Show All 517 Lines • Show Last 20 Lines |