summarylogtreecommitdiffstats
path: root/background-opacity.patch
diff options
context:
space:
mode:
authorbratekarate2020-04-09 23:27:23 +0200
committerbratekarate2020-04-09 23:27:23 +0200
commit71d42d1c1bd60abefdc16a4b5f29de3bbfc12c5a (patch)
treeffa198361f876c5c4f8e958e874e8dbbd9850706 /background-opacity.patch
downloadaur-71d42d1c1bd60abefdc16a4b5f29de3bbfc12c5a.tar.gz
initial package commit
Diffstat (limited to 'background-opacity.patch')
-rw-r--r--background-opacity.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/background-opacity.patch b/background-opacity.patch
new file mode 100644
index 00000000000..c8c7cb1b689
--- /dev/null
+++ b/background-opacity.patch
@@ -0,0 +1,20 @@
+--- src/rxvtimg.C
++++ src/rxvtimg.C
+@@ -770,9 +770,15 @@
+
+ if (repeat == RepeatNone)
+ {
+- XRenderColor rc = { 0, 0, 0, 0 };
++ rgba bg = GET_R->pix_colors[Color_bg];
++ XRenderColor rc = {
++ (unsigned short)(bg.r * bg.a / 65535),
++ (unsigned short)(bg.g * bg.a / 65535),
++ (unsigned short)(bg.b * bg.a / 65535),
++ GET_R->depth == 32 ? bg.a : 65535
++ };
+ XRenderFillRectangle (cc.dpy, PictOpSrc, cc.dst, &rc, 0, 0, w, h);//TODO: split into four fillrectangles
+- XRenderComposite (cc.dpy, PictOpSrc, cc.src, None, cc.dst, 0, 0, 0, 0, x, y, ref->w, ref->h);
++ XRenderComposite (cc.dpy, PictOpOver, cc.src, None, cc.dst, 0, 0, 0, 0, x, y, ref->w, ref->h);
+ }
+ else
+ XRenderComposite (cc.dpy, PictOpSrc, cc.src, None, cc.dst, -x, -y, 0, 0, 0, 0, w, h);