diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-06-14 16:45:41 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-06-14 16:45:41 +0200 |
| commit | a357fa3e0a60b4f96a1924e0d9753d23001ab00e (patch) | |
| tree | 2357ac41b2e8bfdde2bd4bdb9b70295a4b252237 /src/events/Windows.cpp | |
| parent | a9d53a2252f7ec084e2487d18777e2df01c8c351 (diff) | |
window: use effective damage for tearing re-schedules
fixes #6377
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 899318ce..becff152 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -803,7 +803,7 @@ void Events::listener_commitWindow(void* owner, void* data) { // tearing: if solitary, redraw it. This still might be a single surface window const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); if (PMONITOR && PMONITOR->solitaryClient.lock() == PWINDOW && PWINDOW->canBeTorn() && PMONITOR->tearingState.canTear && PWINDOW->m_pWLSurface->resource()->current.buffer) { - CRegion damageBox{PWINDOW->m_pWLSurface->resource()->current.bufferDamage}; + CRegion damageBox{PWINDOW->m_pWLSurface->resource()->accumulateCurrentBufferDamage()}; if (!damageBox.empty()) { if (PMONITOR->tearingState.busy) { |
