Clip software cursors
If you play some video and the software cursor doesn't hover it, then the shadow cast by the cursor will be getting darker and darker with every frame.
The main reason for that is that kwin paints the software cursor even if the rect behind it hasn't been damaged or repainted.