Reference

XGetTransientForHint(3) on Linux

The text d8734d746fe3, as Debian 13 (Trixie) shipped it.

set or read a window's WM_TRANSIENT_FOR property

XGetTransientForHint(3) on Linux now