diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-23 00:39:32 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-23 00:39:32 +0000 |
| commit | a3fda12ba15286ee412c83a7137fc6cb14afa266 (patch) | |
| tree | 57dd91d2605ce7d23acb85293abc4cc062de1e23 /src/helpers/WLSurface.cpp | |
| parent | 0268bb9888abf3d3e007960770f3a01385385702 (diff) | |
window: unassign surface on unmap
Diffstat (limited to 'src/helpers/WLSurface.cpp')
| -rw-r--r-- | src/helpers/WLSurface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/WLSurface.cpp b/src/helpers/WLSurface.cpp index 38c31e1a..4bb35135 100644 --- a/src/helpers/WLSurface.cpp +++ b/src/helpers/WLSurface.cpp @@ -11,6 +11,10 @@ void CWLSurface::assign(wlr_surface* pSurface) { init(); } +void CWLSurface::unassign() { + destroy(); +} + CWLSurface::~CWLSurface() { destroy(); } |
