diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-02-29 00:03:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-29 00:03:28 +0000 |
| commit | b1c0f1cc018d13ac1e5ebccaade5528ec757bd74 (patch) | |
| tree | 11f62bf58b902b0c0b1732ed3f66aa601dae49fd /src/Window.cpp | |
| parent | 1e7eb3a5a5419f97b61a3403880b161c85dd7b17 (diff) | |
subsurface: Rewrite the subsurface tree (#4877)
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index ece5b658..f1484cb0 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -471,6 +471,8 @@ void CWindow::onUnmap() { PMONITOR->solitaryClient = nullptr; g_pCompositor->updateWorkspaceWindows(m_iWorkspaceID); + + m_pSubsurfaceHead.reset(); } void CWindow::onMap() { @@ -516,6 +518,8 @@ void CWindow::onMap() { m_bTearingHint = ctrl->pWlrHint->current; break; } + + m_pSubsurfaceHead = std::make_unique<CSubsurface>(this); } void CWindow::onBorderAngleAnimEnd(void* ptr) { |
