To set a window's WM_TRANSIENT_FOR property, use XSetTransientForHint().
To read a window's WM_TRANSIENT_FOR property, use XGetTransientForHint().