mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-24 10:04:19 -05:00
view: do not render monitor for tearing if it's blocked (#15500)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user