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.
This commit is contained in:
parent
20b8d606e1
commit
1d906169d8
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue