X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=helpers.h;h=9be286aff5e675e35b8395a0147678890c858553;hb=d77f7e33704119ad1ce2ea7b4d45b19b86bafd12;hp=cc5a3d363041748a59d3276ce4ae8352a1b4d31e;hpb=409aad038f883218eaa67c2e641a082efb722a32;p=bspwm.git diff --git a/helpers.h b/helpers.h index cc5a3d3..9be286a 100644 --- a/helpers.h +++ b/helpers.h @@ -12,8 +12,9 @@ #define ABS(A) ((A) < 0 ? -(A) : (A)) #define BOOLSTR(A) ((A) ? "true" : "false") -#define XCB_CONFIG_WINDOW_X_Y_WIDTH_HEIGHT XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT -#define XCB_CONFIG_WINDOW_X_Y XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y +#define XCB_CONFIG_WINDOW_X_Y XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y +#define XCB_CONFIG_WINDOW_WIDTH_HEIGHT XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT +#define XCB_CONFIG_WINDOW_X_Y_WIDTH_HEIGHT XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT #define MAXLEN 256 #define REMLEN(x) (BUFSIZ - strlen(x) - 1) @@ -30,5 +31,6 @@ void warn(char *, ...); __attribute__((noreturn)) void err(char *, ...); uint32_t get_color(char *); +double distance(xcb_point_t, xcb_point_t); #endif