]> git.sur5r.net Git - i3/i3/blob - i3-input/i3-input.h
d347506fe61e69907bc9c13fbc5672ff3fd8113c
[i3/i3] / i3-input / i3-input.h
1 #pragma once
2
3 #include <config.h>
4
5 #include <err.h>
6
7 #define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
8 #define FREE(pointer)          \
9     do {                       \
10         if (pointer != NULL) { \
11             free(pointer);     \
12             pointer = NULL;    \
13         }                      \
14     } while (0)
15
16 extern xcb_window_t root;