Get window title with XCB
问题 I am trying to get information about the window in focus. It seems that I get a correct window id from xcb_get_input_focus_reply_t->focus : it stays the same for my Eclipse IDE (56623164) and is another for any other window in focus. However, the value length is always 0 for XCB_ATOM_WM_NAME . shortened code cookie = xcb_get_property(c, 0, fr->focus, XCB_ATOM_WM_NAME, XCB_ATOM_STRING, 0, 0); if ((reply = xcb_get_property_reply(c, cookie, NULL))) { int len = xcb_get_property_value_length(reply