]> git.sur5r.net Git - i3/i3/blob - i3-nagbar/i3-nagbar.h
Merge branch 'master' into next
[i3/i3] / i3-nagbar / i3-nagbar.h
1 #ifndef I3_NAGBAR
2 #define I3_NAGBAR
3
4 #include <err.h>
5
6 #define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
7 #define FREE(pointer) do { \
8         if (pointer != NULL) { \
9                 free(pointer); \
10                 pointer = NULL; \
11         } \
12 } \
13 while (0)
14
15 #define xmacro(atom) xcb_atom_t A_ ## atom;
16 #include "atoms.xmacro"
17 #undef xmacro
18
19 extern xcb_window_t root;
20
21 #endif