Reference

XRemoveConnectionWatch(3) on Linux

The text 4897eb92d139, as Debian 11 (Bullseye) shipped it.

handle Xlib internal connections

XRemoveConnectionWatch(3) on Linux now