damage: use buffer_damage instead of effective_damage

This commit is contained in:
vaxerski
2024-01-17 16:01:20 +01:00
parent 307dd8f511
commit c4365f20ed
2 changed files with 2 additions and 5 deletions

View File

@@ -264,11 +264,9 @@ void Events::listener_commitSubsurface(void* owner, void* data) {
const auto PMONITOR = g_pCompositor->getMonitorFromID(pNode->pWindowOwner->m_iMonitorID);
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());
CRegion damageBox{&pNode->pSurface->wlr()->buffer_damage};
if (!damageBox.empty()) {
if (PMONITOR->tearingState.busy) {
PMONITOR->tearingState.frameScheduledWhileBusy = true;
} else {