mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 20:05:58 +01:00
surface: set to nullptr after destroy()
This commit is contained in:
parent
3a3a3f7bdb
commit
0268bb9888
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue