summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-06-14 16:45:41 +0200
committerVaxry <vaxry@vaxry.net>2024-06-14 16:45:41 +0200
commita357fa3e0a60b4f96a1924e0d9753d23001ab00e (patch)
tree2357ac41b2e8bfdde2bd4bdb9b70295a4b252237 /src/events/Windows.cpp
parenta9d53a2252f7ec084e2487d18777e2df01c8c351 (diff)
window: use effective damage for tearing re-schedules
fixes #6377
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp2
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) {