commit 8b564c1a3f51c08e64c2f589852a02b8595d44ca from: Devin J. Pohly date: Mon Feb 26 03:53:24 2018 UTC Remove X and fontconfig from st.c None of the X-related includes are needed any longer. In addition, move the X modifier defines into x.c, as they are not used outside. Signed-off-by: Devin J. Pohly commit - 3bb900cd6c1c7a5364bd79bce63fdd8711bc878b commit + 8b564c1a3f51c08e64c2f589852a02b8595d44ca blob - bcb64732947a484a682febd25f31fa828dd0fb7b blob + 9cfa5470925cd360469c7ae1d3471a336c366e56 --- st.c +++ st.c @@ -21,13 +21,8 @@ #include #include #include -#include #include -/* X11 */ -#include -#include - #include "st.h" #include "win.h" blob - f95a6790db7a19936b2ab84f0079ef6d6ce78d60 blob + 123662e97a462fdf9e1b0a233cd17b3e9cbf3d3b --- win.h +++ win.h @@ -1,10 +1,5 @@ /* See LICENSE for license details. */ -/* X modifiers */ -#define XK_ANY_MOD UINT_MAX -#define XK_NO_MOD 0 -#define XK_SWITCH_MOD (1<<13) - void draw(void); void drawregion(int, int, int, int); blob - a332ac9386272404aa3d563cfd11ed7740959484 blob + e5b236de5cfb8cda3ad271a7e3c9fda3889d17f9 --- x.c +++ x.c @@ -44,6 +44,11 @@ typedef struct { signed char crlf; /* crlf mode */ } Key; +/* X modifiers */ +#define XK_ANY_MOD UINT_MAX +#define XK_NO_MOD 0 +#define XK_SWITCH_MOD (1<<13) + /* function definitions used in config.h */ static void clipcopy(const Arg *); static void clippaste(const Arg *);