From a3fda12ba15286ee412c83a7137fc6cb14afa266 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 23 Mar 2023 00:39:32 +0000 Subject: window: unassign surface on unmap --- src/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Window.cpp') diff --git a/src/Window.cpp b/src/Window.cpp index 19fb68c2..840944d4 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -336,6 +336,8 @@ void CWindow::onUnmap() { m_vRealSize.setCallbackOnBegin(nullptr); std::erase_if(g_pCompositor->m_vWindowFocusHistory, [&](const auto& other) { return other == this; }); + + m_pWLSurface.unassign(); } void CWindow::onMap() { -- cgit v1.2.3