Discard SurfaceItemXwayland's quads when shape changes

The SurfaceItemXwayland has to re-build quads if the shape changes.

The SurfaceItemX11 doesn't need a similar fix as it already discards
quads whenever the shape region changes.
master
Vlad Zahorodnii 3 years ago
parent 20b8d606e1
commit 1d906169d8

@ -199,6 +199,8 @@ void SurfacePixmapWayland::setBuffer(KWaylandServer::BufferInterface *buffer)
SurfaceItemXwayland::SurfaceItemXwayland(Scene::Window *window, Item *parent)
: SurfaceItemWayland(window->window()->surface(), window, parent)
{
const Toplevel *toplevel = window->window();
connect(toplevel, &Toplevel::geometryShapeChanged, this, &SurfaceItemXwayland::discardQuads);
}
QRegion SurfaceItemXwayland::shape() const

Loading…
Cancel
Save