Strange behaviour occurs on laptops with intel/nvidia cards, when NVIDIA card is enabled, there is strange box around cursor, that do not refresh properly as it should. This is somehow connected to Prime, PCs without intel card works on NVIDIA properly. This is connected to KDE and its OpenGL composition, XRender works properly. This bug is there for almost a year.
https://bugs.launchpad.net/ubuntu/+source/plasma-workspace/+bug/1684240
KWin is not responsible for drawing the cursor. This is a bug in X or the driver.