diff --git a/src/effects/desktopgrid/desktopgrid.cpp b/src/effects/desktopgrid/desktopgrid.cpp index 1faea0db8a..e444d9ff4c 100644 --- a/src/effects/desktopgrid/desktopgrid.cpp +++ b/src/effects/desktopgrid/desktopgrid.cpp @@ -445,7 +445,7 @@ void DesktopGridEffect::slotWindowClosed(EffectWindow* w) windowMove = nullptr; } if (isUsingPresentWindows()) { - const auto desktops = desktopList(windowMove); + const auto desktops = desktopList(w); for (const int i : desktops) { WindowMotionManager& manager = m_managers[w->screen()][i]; manager.unmanage(w);