1. Only update preedit if preedit changed. 2. Only send cursor update if cursor position is not changed.