X's two ways to send events to X clients (more or less)
(utcc.utoronto.ca)
from tedu@inks.tedunangst.com to inks@inks.tedunangst.com on 12 Oct 2023 19:37
https://inks.tedunangst.com/l/5045
from tedu@inks.tedunangst.com to inks@inks.tedunangst.com on 12 Oct 2023 19:37
https://inks.tedunangst.com/l/5045
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).
threaded - newest
I've been annoyed by the xterm's sham security since forever, and ended up just using the test extension, although it's slightly more awkward for some hotkey tasks.