X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-input%2Fi3-input.h;h=fcf9edc3d3138ac24a644cee60adb8f85b9e6bdf;hb=d03b96b3698610110faa662deef395d769b2c034;hp=ae0e0fc0eb9585190ffbebf3f78438fd4a7c6f5a;hpb=a58018cf66108a81fc7e9ab0f7e47b29969184a0;p=i3%2Fi3 diff --git a/i3-input/i3-input.h b/i3-input/i3-input.h index ae0e0fc0..fcf9edc3 100644 --- a/i3-input/i3-input.h +++ b/i3-input/i3-input.h @@ -1,21 +1,14 @@ -#ifndef _I3_INPUT -#define _I3_INPUT +#pragma once #include #define die(...) errx(EXIT_FAILURE, __VA_ARGS__); -#define FREE(pointer) do { \ +#define FREE(pointer) \ + do { \ if (pointer != NULL) { \ - free(pointer); \ - pointer = NULL; \ - } \ -} \ -while (0) + free(pointer); \ + pointer = NULL; \ + } \ + } while (0) extern xcb_window_t root; - -char *convert_ucs_to_utf8(char *input); -char *convert_utf8_to_ucs2(char *input, int *real_strlen); -xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height); - -#endif