Hi Martin,
Thanks for the comments, to be honest, my elisp knowledge is very limited and I wanted to learn by doing a modal editing package.
This package has two modes: normal and insert, I like to change the cursor color and type according to the active editing mode.
For this reason, I have a hook in the minibuffer, so everytime I open the minibuffer I want to switch to insert mode and this triggers the
cursor update in every frame then when the minibufer is closed go back to normal mode and again update the cursor in every frame.
I'm pretty sure there are better ways to achieve this, but this was the one I got working in Emacs 27.
I'm happy to share the entire code if that helps but I think the point here is the bug is real and should be fixed no?
In the meantime, I'll take your snippet (thanks for that) and try to edit my package to workaround the bug.
Regards,
Iris.