How to update Gizmo drawings?

Hi,

After the operator is executed, selection is updated correctly but the Gizmo drawing is not. I already tried DEG_id_tag_update(&obedit->id, ID_RECALC_GEOMETRY | ID_RECALC_SELECT);

Before:
34

After:
50

The following lines seem to solve the issue:

DEG_id_tag_update(&obedit->id, ID_RECALC_GEOMETRY | ID_RECALC_TRANSFORM);
WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL);