From 12985fa0d8e43b1e33326dfb49be681970dfaea5 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 5 Mar 2024 00:21:37 +0000 Subject: surface: fix damage tearing feedback fixes #4935 --- src/desktop/Subsurface.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/desktop/Subsurface.cpp') diff --git a/src/desktop/Subsurface.cpp b/src/desktop/Subsurface.cpp index d9aa3d6d..bdf5aa35 100644 --- a/src/desktop/Subsurface.cpp +++ b/src/desktop/Subsurface.cpp @@ -145,24 +145,6 @@ void CSubsurface::onCommit() { box = {COORDS, m_vLastSize}; g_pHyprRenderer->damageBox(&box); } - - if (m_pWindowParent) { - // tearing: if solitary, redraw it. This still might be a single surface window - const auto PMONITOR = g_pCompositor->getMonitorFromID(m_pWindowParent->m_iMonitorID); - if (PMONITOR && PMONITOR->solitaryClient == m_pWindowParent && m_pWindowParent->canBeTorn() && PMONITOR->tearingState.canTear && - m_sWLSurface.wlr()->current.committed & WLR_SURFACE_STATE_BUFFER) { - CRegion damageBox{&m_sWLSurface.wlr()->buffer_damage}; - - if (!damageBox.empty()) { - if (PMONITOR->tearingState.busy) { - PMONITOR->tearingState.frameScheduledWhileBusy = true; - } else { - PMONITOR->tearingState.nextRenderTorn = true; - g_pHyprRenderer->renderMonitor(PMONITOR); - } - } - } - } } void CSubsurface::onDestroy() { -- cgit v1.2.3