Clear the shadow when the associated window is destroyed

This ensures that there are no shadows during teardown.
wilder-5.22
Vlad Zahorodnii 5 years ago
parent 541c81dc4d
commit 612594018f
  1. 1
      shell/panelshadows.cpp

@ -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();
}

Loading…
Cancel
Save