diff options
author | Devin J. Pohly | 2017-10-17 15:21:04 -0500 |
---|---|---|
committer | Devin J. Pohly | 2018-02-25 21:53:24 -0600 |
commit | d8c3d324fd1a2273ba0dc6d34c32846fd7180625 (patch) | |
tree | c6b4174feea5688bcd3a2d157294ba819f3f0273 /x.c | |
parent | 4114f2444d14fce67e39bd0b484c85986ccc1d7f (diff) | |
download | aur-d8c3d324fd1a2273ba0dc6d34c32846fd7180625.tar.gz |
Move config.h include from st.c to x.c
config.h includes references to KeySyms and other X stuff. Until we
come up with a cleaner way to separate configuration, it is simpler
(leads to more code removal) to have this here.
Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -20,6 +20,25 @@ static char *argv0; #include "st.h" #include "win.h" +/* function definitions used in config.h */ +static void clipcopy(const Arg *); +static void clippaste(const Arg *); +static void selpaste(const Arg *); +static void zoom(const Arg *); +static void zoomabs(const Arg *); +static void zoomreset(const Arg *); + +/* config.h for applying patches and the configuration. */ +#include "config.h" + +/* config.h array lengths */ +size_t colornamelen = LEN(colorname); +size_t mshortcutslen = LEN(mshortcuts); +size_t shortcutslen = LEN(shortcuts); +size_t selmaskslen = LEN(selmasks); +size_t keyslen = LEN(key); +size_t mappedkeyslen = LEN(mappedkeys); + /* XEMBED messages */ #define XEMBED_FOCUS_IN 4 #define XEMBED_FOCUS_OUT 5 @@ -189,6 +208,24 @@ static char *opt_name = NULL; static char *opt_title = NULL; void +clipcopy(const Arg *dummy) +{ + xclipcopy(); +} + +void +clippaste(const Arg *dummy) +{ + xclippaste(); +} + +void +selpaste(const Arg *dummy) +{ + xselpaste(); +} + +void zoom(const Arg *arg) { Arg larg; |