diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-23 00:39:32 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-23 00:39:32 +0000 |
| commit | a3fda12ba15286ee412c83a7137fc6cb14afa266 (patch) | |
| tree | 57dd91d2605ce7d23acb85293abc4cc062de1e23 /src/Window.cpp | |
| parent | 0268bb9888abf3d3e007960770f3a01385385702 (diff) | |
window: unassign surface on unmap
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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() { |
