kwin/kwin-5.26.3-backport-reduce_baddamage_errors.patch

26 lines
772 B
Diff

From 7eca5f44dbc2b094468e7430f784ff1e7f372989 Mon Sep 17 00:00:00 2001
From: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
Date: Wed, 5 Oct 2022 14:17:09 +0300
Subject: [PATCH] x11: Reset SurfaceItemX11::m_isDamaged when the damage handle
is destroyed
---
src/surfaceitem_x11.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/surfaceitem_x11.cpp b/src/surfaceitem_x11.cpp
index fef00eb73e..a1a9d8410f 100644
--- a/src/surfaceitem_x11.cpp
+++ b/src/surfaceitem_x11.cpp
@@ -110,6 +110,7 @@ void SurfaceItemX11::waitForDamage()
void SurfaceItemX11::destroyDamage()
{
if (m_damageHandle != XCB_NONE) {
+ m_isDamaged = false;
xcb_damage_destroy(kwinApp()->x11Connection(), m_damageHandle);
m_damageHandle = XCB_NONE;
}
--
GitLab