Save/restore the cursor position when switching between clients