window: always unref workspace on unmap

fixes #5563
This commit is contained in:
Vaxry 2024-04-12 19:52:01 +01:00
parent ddcdb56f2c
commit dd6fdf49d9

View file

@ -486,12 +486,13 @@ void CWindow::onUnmap() {
g_pCompositor->updateWorkspaceSpecialRenderData(workspaceID());
g_pCompositor->updateAllWindowsAnimatedDecorationValues();
m_pWorkspace.reset();
if (m_bIsX11)
return;
m_pSubsurfaceHead.reset();
m_pPopupHead.reset();
m_pWorkspace.reset();
}
void CWindow::onMap() {