Reference

XtIsTopLevelShell(3x) on Linux

The text bb4fad9a979a, as Debian 1.2 (Rex) shipped it.

obtain and verify a widget's class

XtIsTopLevelShell(3x) on Linux now