diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-12 19:52:01 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-12 19:52:01 +0100 |
| commit | dd6fdf49d9deebfe792ab5cd0332432249922fa9 (patch) | |
| tree | 646352911d737a6cef73dd67e4dd03b7ec7cc3c3 /src/desktop/Window.cpp | |
| parent | ddcdb56f2c7dab026a047379aaff4e30acff7414 (diff) | |
window: always unref workspace on unmap
fixes #5563
Diffstat (limited to 'src/desktop/Window.cpp')
| -rw-r--r-- | src/desktop/Window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 8d6a4fa4..4318dbbc 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -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() { |
