#include <xcb/present.h> Event datastructure typedef struct xcb_present_generic_event_t { uint8_tresponse_type; uint8_textension; uint16_tsequence; uint32_tlength; uint16_tevtype; uint8_tpad0[2]; xcb_present_event_tevent; }xcb_present_generic_event_t; ...
} xcb_pixmap_t create_bg_pixmap(xcb_connection_t *conn, xcb_screen_t *scr, u_int32_t *resolution, char *color) { xcb_pixmap_t bg_pixmap = xcb_generate_id(conn); xcb_create_pixmap(conn, scr->root_depth, bg_pixmap, scr->root, resolution[0], resolution[1]); /* Generate a Gra...
xcb_void_cookie_t xcb_create_pixmap (xcb_connection_t *c, /* Pointer to the xcb_connection_t structure */ uint8_t depth, /* Depth of the screen */ xcb_pixmap_t pid, /* Id of the pixmap */ xcb_drawable_t drawable, uint16_t width, /* Width of the window (in pixels) */ u...