[TextEditor] Avoid unnecessary calls to GdkWindow.Cursor