Reference

XGetTransientForHint(3) on Linux

The text c6e3884aab60, as Debian 6.0 (Squeeze) shipped it.

set or read a window's WM_TRANSIENT_FOR property

XGetTransientForHint(3) on Linux now