aboutsummarylogtreecommitdiffstats
path: root/x.c
diff options
context:
space:
mode:
authorDevin J. Pohly2017-10-17 16:46:26 -0500
committerDevin J. Pohly2018-02-25 21:53:24 -0600
commitf126764598c56fb56d0dc9793feb5b73e3d975ae (patch)
tree2f11a863623203b6d05d79ad9145361ca96ec7ef /x.c
parent89a127ff6f939a9663aeb89c01ed34cc73ae9a4b (diff)
downloadaur-f126764598c56fb56d0dc9793feb5b73e3d975ae.tar.gz
Move X-related config.h types into x.c
No need to expose Shortcut, MouseShortcut, and Key anymore. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to 'x.c')
-rw-r--r--x.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/x.c b/x.c
index 03555d139069..24f699169c21 100644
--- a/x.c
+++ b/x.c
@@ -20,6 +20,30 @@ static char *argv0;
#include "st.h"
#include "win.h"
+/* types used in config.h */
+typedef struct {
+ uint mod;
+ KeySym keysym;
+ void (*func)(const Arg *);
+ const Arg arg;
+} Shortcut;
+
+typedef struct {
+ uint b;
+ uint mask;
+ char *s;
+} MouseShortcut;
+
+typedef struct {
+ KeySym k;
+ uint mask;
+ char *s;
+ /* three valued logic variables: 0 indifferent, 1 on, -1 off */
+ signed char appkey; /* application keypad */
+ signed char appcursor; /* application cursor */
+ signed char crlf; /* crlf mode */
+} Key;
+
/* function definitions used in config.h */
static void clipcopy(const Arg *);
static void clippaste(const Arg *);