#include #include #include #include int main() { int screen = 0; xcb_connection_t* c = xcb_connect(getenv("DISPLAY"), &screen); xcb_screen_t* root = xcb_aux_get_screen(c, screen); xcb_randr_get_screen_info_reply(c, xcb_randr_get_screen_info(c, root->root), 0); }