Update XIM cursor position only if changed