Skip to content

Instantly share code, notes, and snippets.

View chreniuc's full-sized avatar

Hreniuc Cristian-Alexandru chreniuc

View GitHub Profile
@chreniuc
chreniuc / xcr.c
Created March 3, 2019 18:05 — forked from luser-dr00g/xcr.c
xcb+cairo hello world window
//xcr.c
//cc -o xcr $(pkg-config --cflags --libs cairo xcb xcb-icccm) xcr.c -lcairo -lxcb -lxcb-icccm
#include <stdlib.h>
#include <string.h>
#include <cairo.h>
#include <cairo-xcb.h>
#include <xcb/xcb.h>
#include <xcb/xcb_image.h>
#include <xcb/xcb_aux.h>
#include <xcb/xcb_icccm.h>