I'm looking for an example of how to use the various functions in xcb_icccm. Specifically how to get the wm name property of a window. I'm using this code right now:<div><br></div><div><div>std::string Window::getWMName()</div>

<div>{</div><div>    //xcb_generic_error_t e;</div><div>    xcb_icccm_get_text_property_reply_t prop;</div><div>    xcb_get_property_cookie_t cookie = xcb_icccm_get_wm_name_unchecked(globalconf.conn, id);</div><div>    xcb_icccm_get_wm_name_reply(globalconf.conn, cookie, &prop, NULL);</div>

<div>    std::string name = <a href="http://prop.name">prop.name</a>;</div><div>    return name;</div><div>}</div><div><br></div><div>and when I try to out put the name, I get this:</div><div><div><font face="courier new, monospace">This is the window's name <garbage characters></font></div>

</div><div><br></div><div><br></div>-- <br>Praising my Savior all the day long,<div>Micah Nordland</div><br>
</div>