URI: 
       Remove X and fontconfig from st.c - st - simple terminal
  HTML git clone https://git.parazyd.org/st
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 8b564c1a3f51c08e64c2f589852a02b8595d44ca
   DIR parent 3bb900cd6c1c7a5364bd79bce63fdd8711bc878b
  HTML Author: Devin J. Pohly <djpohly@gmail.com>
       Date:   Mon,  6 Nov 2017 18:30:45 -0600
       
       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 <djpohly@gmail.com>
       
       Diffstat:
         M st.c                                |       5 -----
         M win.h                               |       5 -----
         M x.c                                 |       5 +++++
       
       3 files changed, 5 insertions(+), 10 deletions(-)
       ---
   DIR diff --git a/st.c b/st.c
       @@ -21,13 +21,8 @@
        #include <time.h>
        #include <unistd.h>
        #include <libgen.h>
       -#include <fontconfig/fontconfig.h>
        #include <wchar.h>
        
       -/* X11 */
       -#include <X11/cursorfont.h>
       -#include <X11/Xft/Xft.h>
       -
        #include "st.h"
        #include "win.h"
        
   DIR diff --git a/win.h b/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);
        
   DIR diff --git a/x.c b/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 *);