diff options
author | Tharre <tharre3@gmail.com> | 2015-08-04 18:22:50 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2015-08-04 18:22:50 +0200 |
commit | 28ef1ecdd7e6c96249fdb488a3a017b4b46aa42d (patch) | |
tree | c4187e9098ea0c7790d6f22cfc75a471faa4bb64 /st-custom/0001-Add-transparency.patch | |
parent | 4ecc8212a30bab604ad161d02eea802399bda567 (diff) | |
download | pkgbuilds-28ef1ecdd7e6c96249fdb488a3a017b4b46aa42d.tar.gz pkgbuilds-28ef1ecdd7e6c96249fdb488a3a017b4b46aa42d.tar.xz pkgbuilds-28ef1ecdd7e6c96249fdb488a3a017b4b46aa42d.zip |
st: update configuration
Diffstat (limited to 'st-custom/0001-Add-transparency.patch')
-rw-r--r-- | st-custom/0001-Add-transparency.patch | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/st-custom/0001-Add-transparency.patch b/st-custom/0001-Add-transparency.patch index 08d4b91..5f36d18 100644 --- a/st-custom/0001-Add-transparency.patch +++ b/st-custom/0001-Add-transparency.patch @@ -1,22 +1,30 @@ -From f4519f34fbdc1eaa2787396f76ce99743d8e2dfb Mon Sep 17 00:00:00 2001 +From ac4449f9ddf196b4430f0d8ec1c83e26a7507416 Mon Sep 17 00:00:00 2001 From: Tharre <tharre3@gmail.com> Date: Mon, 13 Jul 2015 18:32:13 +0200 -Subject: [PATCH] Add transparency +Subject: [PATCH 1/1] Add transparency --- - config.def.h | 3 +++ + config.def.h | 4 +++- config.mk | 2 +- st.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------- - 3 files changed, 57 insertions(+), 9 deletions(-) + 3 files changed, 57 insertions(+), 10 deletions(-) diff --git a/config.def.h b/config.def.h -index e246e3c..1f8c524 100644 +index 930e468..21eea31 100644 --- a/config.def.h +++ b/config.def.h -@@ -96,6 +96,9 @@ static unsigned int defaultfg = 7; +@@ -105,7 +105,6 @@ static unsigned int defaultfg = 7; static unsigned int defaultbg = 0; static unsigned int defaultcs = 256; +- + /* + * Default colour and shape of the mouse cursor + */ +@@ -113,6 +112,9 @@ static unsigned int mouseshape = XC_xterm; + static unsigned int mousefg = 7; + static unsigned int mousebg = 0; + +/* background opacity */ +static const int alpha = 0xed; + @@ -37,7 +45,7 @@ index 67844dc..ce5753a 100644 `pkg-config --libs freetype2` diff --git a/st.c b/st.c -index 64e2cec..11025b2 100644 +index 1df4fde..338c176 100644 --- a/st.c +++ b/st.c @@ -60,6 +60,7 @@ char *argv0; @@ -89,7 +97,7 @@ index 64e2cec..11025b2 100644 loaded = 1; } -@@ -3415,7 +3425,38 @@ xinit(void) +@@ -3416,7 +3426,38 @@ xinit(void) if (!(xw.dpy = XOpenDisplay(NULL))) die("Can't open display\n"); xw.scr = XDefaultScreen(xw.dpy); @@ -129,7 +137,7 @@ index 64e2cec..11025b2 100644 /* font */ if (!FcInit()) -@@ -3425,7 +3466,10 @@ xinit(void) +@@ -3426,7 +3467,10 @@ xinit(void) xloadfonts(usedfont, 0); /* colors */ @@ -141,7 +149,7 @@ index 64e2cec..11025b2 100644 xloadcols(); /* adjust fixed window geometry */ -@@ -3448,16 +3492,17 @@ xinit(void) +@@ -3449,16 +3493,17 @@ xinit(void) if (!(opt_embed && (parent = strtol(opt_embed, NULL, 0)))) parent = XRootWindow(xw.dpy, xw.scr); xw.win = XCreateWindow(xw.dpy, parent, xw.l, xw.t, @@ -164,5 +172,5 @@ index 64e2cec..11025b2 100644 XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0, xw.w, xw.h); -- -2.4.5 +2.5.0 |