x11: Reset SurfaceItemX11::m_isDamaged when the damage handle is destroyed

This commit is contained in:
Vlad Zahorodnii 2022-10-05 14:17:09 +03:00
parent b3214db0b7
commit 7eca5f44db

View file

@ -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;
}