X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-nagbar%2Fi3-nagbar.h;h=fc076d728f8a099f80d9875c721d86eb42cc342d;hb=419b73be9e6e502760878f8372a7d51975c0cdce;hp=951e264fd7d0db9b6499057339fd0fceebd2a1d6;hpb=78fea8e1fb2e4a36295201a7b9d73473170c5e92;p=i3%2Fi3 diff --git a/i3-nagbar/i3-nagbar.h b/i3-nagbar/i3-nagbar.h index 951e264f..fc076d72 100644 --- a/i3-nagbar/i3-nagbar.h +++ b/i3-nagbar/i3-nagbar.h @@ -1,24 +1,18 @@ -#ifndef _I3_NAGBAR -#define _I3_NAGBAR +#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) -#define xmacro(atom) xcb_atom_t A_ ## atom; +#define xmacro(atom) xcb_atom_t A_##atom; #include "atoms.xmacro" #undef xmacro extern xcb_window_t root; - -xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height); -int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height); - -#endif