tearing-control: handle unmapped surfaces for hints

fixes #4570
This commit is contained in:
Vaxry 2024-02-01 00:55:17 +00:00
parent 4f804d5f96
commit cfd68af5b6
2 changed files with 11 additions and 10 deletions

View file

@ -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) {