Reference

XFetchName(3x) on Linux

The text 8091d759f6ed, as Debian 2.2 (Potato), Debian 2.1 (Slink), Debian 2.0 (Hamm), Debian 1.3 (Bo) shipped it.

set or read a window's WM_NAME property

XFetchName(3x) on Linux now