Reference

XGetTransientForHint(3) on Linux

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

set or read a window's WM_TRANSIENT_FOR property

XGetTransientForHint(3) on Linux now