[SDL 1.2.x] delivery of keyboard events gets suspended by SDL_EnableUNICODE toggles

Under some quite tricky code, that toggles from handling text input to
key press/releases upon specific key press, it sometimes happens,
that keyboard events are stopped to be delivered alltogether.

Almost two months ago, I’ve filed bug 2325 about it, but I’m not getting
any feedback there, so I’ve decided to ask here.

What would be the proper way of fixing it, as my hackish patch seems to
help, but is obviously not really correct ?

Also, is there a chance, that that vague comment on XFilterEvent manpage
about grabs might play a role in this context ?

PS: I’m not subscribed to the list, so CC me on replies.