6 #define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
7 #define FREE(pointer) do { \
8 if (pointer != NULL) { \
15 #define xmacro(atom) xcb_atom_t A_ ## atom;
16 #include "atoms.xmacro"
19 extern xcb_window_t root;
21 uint32_t get_colorpixel(xcb_connection_t *conn, char *hex);
22 xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height);
23 int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height);
24 void xcb_change_gc_single(xcb_connection_t *conn, xcb_gcontext_t gc, uint32_t mask, uint32_t value);