Copy shape region to Deleted

Currently, the shape region is not copied to the Deleted. If either
SurfaceItemX11 or SurfaceItemXwayland needs to build quads for a shaped
window, it won't be able to do so properly because the corresponding
x11 window is long time gone.

If the shape region changes before the window is unmapped, you may still
see visual artifacts. Unfortunately, the only way to fix that bug is to
switch to wayland.

BUG: 440001
BUG: 438458
BUG: 435378
This commit is contained in:
Vlad Zahorodnii 2021-08-04 20:28:51 +03:00
parent d47b27f9cd
commit e94fbcd853

View file

@ -129,6 +129,8 @@ void Toplevel::copyToDeleted(Toplevel* c)
m_internalFBO = c->m_internalFBO;
m_internalImage = c->m_internalImage;
m_opacity = c->m_opacity;
m_shapeRegionIsValid = c->m_shapeRegionIsValid;
m_shapeRegion = c->m_shapeRegion;
}
// before being deleted, remove references to everything that's now