Cursor is actually wrapped at the beginning with the help of function `WM_cursor_grab_enable`. Though the `ND_MODE` event notifier added inside `editmode_enter/exit_ex` further calls `region_cusor_set()`. This resets the cursor to default at the bottom of `ED_region_cursor_set()`. Such sitution could be avoided by creating a dummy cursor function for hud region. But issue remains when we call redo panel from F9. As Julian suggested, add condition for `grabcursor` to avoid changing cursor when editing buttons. Pull Request: https://projects.blender.org/blender/blender/pulls/133529