summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp4
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) {