This is only done in non-capture mode to avoid messing up games.
Also, added a redraw after warping. This is because turning off overlay does not involve mouse movement, which means the renderer is not notified of the new cursor position, and thus exposing the fact that the guest cursor is rendered in the wrong location.
This is only done in non-capture mode to avoid messing up games.
Also, added a redraw after warping. This is because turning off overlay does not involve mouse movement, which means the renderer is not notified of the new cursor position, and thus exposing the fact that the guest cursor is rendered in the wrong location.