only set the cursor if it has changed

this was verbally +1ed by @kristjan
Merge branch 'master' into pods

* master:
  only set the cursor if it has changed