Implement proper mouse cursor handling in the vnc backend