summaryrefslogtreecommitdiff
path: root/extra/xcompmgr
diff options
context:
space:
mode:
Diffstat (limited to 'extra/xcompmgr')
-rw-r--r--extra/xcompmgr/PKGBUILD12
-rw-r--r--extra/xcompmgr/fix_broken_shadows.diff28
2 files changed, 36 insertions, 4 deletions
diff --git a/extra/xcompmgr/PKGBUILD b/extra/xcompmgr/PKGBUILD
index 24822a6c7..cab1793ed 100644
--- a/extra/xcompmgr/PKGBUILD
+++ b/extra/xcompmgr/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 150240 2012-02-15 16:46:01Z andyrtr $
+# $Id: PKGBUILD 166176 2012-09-05 07:11:03Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Leslie P. Polzer <leslie.polzer@gmx.net>
pkgname=xcompmgr
pkgver=1.1.6
-pkgrel=1
+pkgrel=2
pkgdesc="Composite Window-effects manager for X.org"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
@@ -12,11 +12,15 @@ license=('custom')
depends=('libxcomposite' 'libxdamage' 'libxrender' 'libxext')
conflicts=('xapps')
replaces=('xapps')
-source=(http://xorg.freedesktop.org/releases/individual/app/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('a9cf78ea32bac51ff584115381f195566b164fe3')
+source=(http://xorg.freedesktop.org/releases/individual/app/${pkgname}-${pkgver}.tar.bz2
+ fix_broken_shadows.diff)
+sha1sums=('a9cf78ea32bac51ff584115381f195566b164fe3'
+ '435f9f0ad652bdd759f822514bf1559abf119ffe')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ # fix broken shadows in openbox - patch takern from https://bugs.freedesktop.org/show_bug.cgi?id=46285
+ patch -Np0 -i ${srcdir}/fix_broken_shadows.diff
./configure --prefix=/usr
make
}
diff --git a/extra/xcompmgr/fix_broken_shadows.diff b/extra/xcompmgr/fix_broken_shadows.diff
new file mode 100644
index 000000000..39b8ac725
--- /dev/null
+++ b/extra/xcompmgr/fix_broken_shadows.diff
@@ -0,0 +1,28 @@
+--- xcompmgr.c 2011-11-19 01:49:52.000000000 -0600
++++ xcompmgr.c 2012-08-11 21:58:58.000000000 -0500
+@@ -1028,7 +1028,6 @@
+ {
+ w->borderClip = XFixesCreateRegion (dpy, NULL, 0);
+ XFixesCopyRegion (dpy, w->borderClip, region);
+- XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize);
+ }
+ w->prev_trans = t;
+ t = w;
+@@ -1080,6 +1079,8 @@
+ if (w->mode == WINDOW_TRANS)
+ {
+ int x, y, wid, hei;
++ XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize);
++ XFixesSetPictureClipRegion(dpy, rootBuffer, 0, 0, w->borderClip);
+ #if HAS_NAME_WINDOW_PIXMAP
+ x = w->a.x;
+ y = w->a.y;
+@@ -1099,6 +1100,8 @@
+ else if (w->mode == WINDOW_ARGB)
+ {
+ int x, y, wid, hei;
++ XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize);
++ XFixesSetPictureClipRegion(dpy, rootBuffer, 0, 0, w->borderClip);
+ #if HAS_NAME_WINDOW_PIXMAP
+ x = w->a.x;
+ y = w->a.y;