diff options
| author | Devin J. Pohly <djpohly@gmail.com> | 2017-10-17 16:46:26 -0500 |
|---|---|---|
| committer | Devin J. Pohly <djpohly@gmail.com> | 2018-02-25 21:53:24 -0600 |
| commit | 416dd257274fd334be082b1138338adffa3e2d5e (patch) | |
| tree | d9bd7a58987adff6977cc6e53e003fa28295c382 /x.c | |
| parent | Remove unneeded array-length variables (diff) | |
| download | st-416dd257274fd334be082b1138338adffa3e2d5e.tar.gz st-416dd257274fd334be082b1138338adffa3e2d5e.zip | |
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.c | 24 |
1 files changed, 24 insertions, 0 deletions
| @@ -20,6 +20,30 @@ static char *argv0; | |||
| 20 | #include "st.h" | 20 | #include "st.h" |
| 21 | #include "win.h" | 21 | #include "win.h" |
| 22 | 22 | ||
| 23 | /* types used in config.h */ | ||
| 24 | typedef struct { | ||
| 25 | uint mod; | ||
| 26 | KeySym keysym; | ||
| 27 | void (*func)(const Arg *); | ||
| 28 | const Arg arg; | ||
| 29 | } Shortcut; | ||
| 30 | |||
| 31 | typedef struct { | ||
| 32 | uint b; | ||
| 33 | uint mask; | ||
| 34 | char *s; | ||
| 35 | } MouseShortcut; | ||
| 36 | |||
| 37 | typedef struct { | ||
| 38 | KeySym k; | ||
| 39 | uint mask; | ||
| 40 | char *s; | ||
| 41 | /* three valued logic variables: 0 indifferent, 1 on, -1 off */ | ||
| 42 | signed char appkey; /* application keypad */ | ||
| 43 | signed char appcursor; /* application cursor */ | ||
| 44 | signed char crlf; /* crlf mode */ | ||
| 45 | } Key; | ||
| 46 | |||
| 23 | /* function definitions used in config.h */ | 47 | /* function definitions used in config.h */ |
| 24 | static void clipcopy(const Arg *); | 48 | static void clipcopy(const Arg *); |
| 25 | static void clippaste(const Arg *); | 49 | static void clippaste(const Arg *); |
