include xcb xcb include xcb xcb_aux include xcb randr include stdlib i

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#include <xcb/xcb.h>
#include <xcb/xcb_aux.h>
#include <xcb/randr.h>
#include <stdlib.h>
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);
}