Reference

XtIsTopLevelShell(3) on Linux

The text b50d88225f54, as Debian 5.0 (Lenny) shipped it.

obtain and verify a widget's class

XtIsTopLevelShell(3) on Linux now