Reference

XIGrabFocusIn(3) on Linux

The text 532d5292d9cc, as Debian 11 (Bullseye) shipped it.

grab/ungrab enter or focus in events.

XIGrabFocusIn(3) on Linux now