From 612594018ff973a5c25dffdfd4fef8f7bdfd1d41 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 15 Jan 2021 21:54:41 +0200 Subject: [PATCH] Clear the shadow when the associated window is destroyed This ensures that there are no shadows during teardown. --- shell/panelshadows.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/panelshadows.cpp b/shell/panelshadows.cpp index e1a7252ef..e72ee64bd 100644 --- a/shell/panelshadows.cpp +++ b/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(); }