2012-09-22 13:31:08 +02:00
|
|
|
#ifndef I3_INPUT
|
|
|
|
#define I3_INPUT
|
2009-09-20 15:44:14 +02:00
|
|
|
|
|
|
|
#include <err.h>
|
|
|
|
|
|
|
|
#define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
|
2011-01-12 10:12:24 +01:00
|
|
|
#define FREE(pointer) do { \
|
|
|
|
if (pointer != NULL) { \
|
|
|
|
free(pointer); \
|
|
|
|
pointer = NULL; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
while (0)
|
2009-09-20 15:44:14 +02:00
|
|
|
|
2011-01-28 00:41:53 +01:00
|
|
|
extern xcb_window_t root;
|
|
|
|
|
2009-09-20 15:44:14 +02:00
|
|
|
#endif
|