In Xlib the structure XRRModeInfo
contains, aside from nameLength
field, the name
itself. But in XCB the corresponding structure xcb_randr_mode_info_t
only contains name_len
, and there seems to be no function to get actual name string.
I do see all the mode names in the string returned by xcb_randr_get_screen_resources_names()
, but they are all concatenated, and I don't know how to find the offset of a particular mode in this string.
So, how can I get the mode name using XCB?