diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-10-04 13:39:40 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-10-04 13:39:40 +0100 |
| commit | 4531717f3ee58f6093f62e5afb21da6599b5a813 (patch) | |
| tree | c78d62136ce4bd2b09ae1e50d4264317bb3791aa /src/helpers/SubsurfaceTree.cpp | |
| parent | f8c18ff7977cf034572cbabe161381465bc2b1ae (diff) | |
renderer: considerable fixes to repaint logic
Diffstat (limited to 'src/helpers/SubsurfaceTree.cpp')
| -rw-r--r-- | src/helpers/SubsurfaceTree.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/SubsurfaceTree.cpp b/src/helpers/SubsurfaceTree.cpp index 76a392e8..b0ed0bfa 100644 --- a/src/helpers/SubsurfaceTree.cpp +++ b/src/helpers/SubsurfaceTree.cpp @@ -249,7 +249,8 @@ void Events::listener_commitSubsurface(void* owner, void* data) { if (pNode->pWindowOwner) { // tearing: if solitary, redraw it. This still might be a single surface window const auto PMONITOR = g_pCompositor->getMonitorFromID(pNode->pWindowOwner->m_iMonitorID); - if (PMONITOR->solitaryClient == pNode->pWindowOwner && pNode->pWindowOwner->canBeTorn() && PMONITOR->tearingState.canTear) { + if (PMONITOR->solitaryClient == pNode->pWindowOwner && pNode->pWindowOwner->canBeTorn() && PMONITOR->tearingState.canTear && + pNode->pSurface->wlr()->current.committed & WLR_SURFACE_STATE_BUFFER) { CRegion damageBox; wlr_surface_get_effective_damage(pNode->pSurface->wlr(), damageBox.pixman()); |
