window: unassign surface on unmap
This commit is contained in:
parent
0268bb9888
commit
a3fda12ba1
3 changed files with 7 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue