diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-23 00:22:43 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-23 00:22:49 +0000 |
| commit | 0268bb9888abf3d3e007960770f3a01385385702 (patch) | |
| tree | cb6a439cb5e57d14c77fbb5e1c20401e55fd712d /src/helpers/WLSurface.cpp | |
| parent | 3a3a3f7bdb4057a614ff939eec6a40ef63fbe327 (diff) | |
surface: set to nullptr after destroy()
Diffstat (limited to 'src/helpers/WLSurface.cpp')
| -rw-r--r-- | src/helpers/WLSurface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helpers/WLSurface.cpp b/src/helpers/WLSurface.cpp index 889e9885..38c31e1a 100644 --- a/src/helpers/WLSurface.cpp +++ b/src/helpers/WLSurface.cpp @@ -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); } |
