summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index ceda1284..d821b1b9 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -518,6 +518,14 @@ void CWindow::onMap() {
"CWindow");
m_vReportedSize = m_vPendingReportedSize;
+
+ for (const auto& ctrl : g_pHyprRenderer->m_vTearingControllers) {
+ if (ctrl->pWlrHint->surface != m_pWLSurface.wlr())
+ continue;
+
+ m_bTearingHint = ctrl->pWlrHint->current;
+ break;
+ }
}
void CWindow::onBorderAngleAnimEnd(void* ptr) {