To read a window's XGetWMName().
The following two functions have been superseded by XSetWMName() and XGetWMName(), respectively. You can use these additional convenience functions for window names that are encoded as STRING properties.
To assign a name to a window, use XStoreName().
To get the name of a window, use XFetchName().