To set a window's WM_NAME property with the supplied convenience function, use XSetWMName().
To read a window's WM_NAME property with the supplied convenience function, use 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().