surface: set to nullptr after destroy()

This commit is contained in:
vaxerski 2023-03-23 00:22:43 +00:00
parent 3a3a3f7bdb
commit 0268bb9888

View file

@ -33,6 +33,8 @@ void CWLSurface::destroy() {
if (g_pCompositor->m_pLastFocus == m_pWLRSurface)
g_pCompositor->m_pLastFocus = nullptr;
m_pWLRSurface = nullptr;
Debug::log(LOG, "CWLSurface %x called destroy()", this);
}