]> git.sur5r.net Git - i3/i3/blob - i3-input/i3-input.h
i3-input: Remove unused get_mod_mask from xcb.c
[i3/i3] / i3-input / i3-input.h
1 #ifndef _I3_INPUT
2 #define _I3_INPUT
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 extern xcb_window_t root;
16
17 char *convert_ucs_to_utf8(char *input);
18 char *convert_utf8_to_ucs2(char *input, int *real_strlen);
19 xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height);
20 int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height);
21
22 #endif