Reference

XGetTransientForHint(3) on Linux

The text 8ce73958b891, as Debian 10 (Buster) shipped it.

set or read a window's WM_TRANSIENT_FOR property

XGetTransientForHint(3) on Linux now