mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-08 16:11:57 -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)
|
||||
g_pCompositor->m_pLastFocus = nullptr;
|
||||
|
||||
m_pWLRSurface = nullptr;
|
||||
|
||||
Debug::log(LOG, "CWLSurface %x called destroy()", this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user