mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 08:31:54 -07:00
surface: set to nullptr after destroy()
This commit is contained in:
@@ -33,6 +33,8 @@ void CWLSurface::destroy() {
|
|||||||
if (g_pCompositor->m_pLastFocus == m_pWLRSurface)
|
if (g_pCompositor->m_pLastFocus == m_pWLRSurface)
|
||||||
g_pCompositor->m_pLastFocus = nullptr;
|
g_pCompositor->m_pLastFocus = nullptr;
|
||||||
|
|
||||||
|
m_pWLRSurface = nullptr;
|
||||||
|
|
||||||
Debug::log(LOG, "CWLSurface %x called destroy()", this);
|
Debug::log(LOG, "CWLSurface %x called destroy()", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user