To set a window's WM_PROTOCOLS property, use XSetWMProtocols().
To read a window's WM_PROTOCOLS property, use XGetWMProtocols().