view: do not render monitor for tearing if it's blocked (#15500)

This commit is contained in:
Vaxry
2026-07-20 21:04:25 +02:00
committed by GitHub
parent 5b260faeb9
commit 2174f26a14
+2 -1
View File
@@ -2758,7 +2758,8 @@ void CWindow::commitWindow() {
}
// tearing: if solitary, redraw it. This still might be a single surface window
if (PMONITOR && PMONITOR->m_solitaryClient.lock() == m_self.lock() && canBeTorn() && PMONITOR->m_tearingState.canTear && wlSurface()->resource()->m_current.texture) {
if (PMONITOR && PMONITOR->m_solitaryClient.lock() == m_self.lock() && canBeTorn() && PMONITOR->m_tearingState.canTear && wlSurface()->resource()->m_current.texture &&
!PMONITOR->isTearingBlocked()) {
CRegion damageBox{wlSurface()->resource()->m_current.accumulateBufferDamage()};
if (!damageBox.empty()) {