qrexec mechanism is tricky. The documentation runs through some examples of how the various parts fit together, but I thought it might be easier to understand with some sequence diagrams.
Here are a couple of diagrams representing
domY-to-domX qrexec applications, taken from the documentation linked above. These necessarily incomplete, but helped me more clearly understand how things work.
❤️ Me on Twitter, Me on Mastodon ❤️