[hackers] [st] Remove X and fontconfig from st.c || Devin J. Pohly

From: <git_AT_suckless.org>
Date: Fri, 9 Mar 2018 15:37:38 +0100 (CET)

commit 8b564c1a3f51c08e64c2f589852a02b8595d44ca
Author: Devin J. Pohly <djpohly_AT_gmail.com>
AuthorDate: Mon Nov 6 18:30:45 2017 -0600
Commit: Devin J. Pohly <djpohly_AT_gmail.com>
CommitDate: Sun Feb 25 21:53:24 2018 -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_AT_gmail.com>

diff --git a/st.c b/st.c
index bcb6473..9cfa547 100644
--- a/st.c
+++ b/st.c
_AT_@ -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"
 
diff --git a/win.h b/win.h
index f95a679..123662e 100644
--- a/win.h
+++ b/win.h
_AT_@ -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);
 
diff --git a/x.c b/x.c
index a332ac9..e5b236d 100644
--- a/x.c
+++ b/x.c
_AT_@ -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 *);
Received on Fri Mar 09 2018 - 15:37:38 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 09 2018 - 15:49:55 CET