Commit 61259401 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Clear the shadow when the associated window is destroyed

This ensures that there are no shadows during teardown.
parent 541c81dc
......@@ -90,6 +90,7 @@ void PanelShadows::addWindow(QWindow *window, Plasma::FrameSvg::EnabledBorders e
d->updateShadow(window, enabledBorders);
connect(window, &QObject::destroyed, this, [this, window]() {
d->m_windows.remove(window);
d->clearShadow(window);
if (d->m_windows.isEmpty()) {
d->clearTiles();
}
......
Supports Markdown
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