To set a window's WM_COMMAND property, use XSetCommand().
To read a window's WM_COMMAND property, use XGetCommand().