X's two ways to send events to X clients (more or less)
https://utcc.utoronto.ca/~cks/space/blog/unix/XTwoWaysToSendEvents [utcc.utoronto.ca]
2023-10-12 19:37
If you hang around people who automate things in their X session, you may have heard of xdotool. If you’ve tried it, you may have noticed that xdotool seems pretty successful in manipulating the windows of X programs, despite the general feelings about SendEvents, and so you might wonder what’s going on here. The answer is that xdotool (and other automation programs) use a second mechanism to inject synthetic events, the XTEST extension (protocol).