From b915a21821423232052e2e48ea14f288b3098c32 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 5 Sep 2012 00:02:31 +0000 Subject: Wed Sep 5 00:02:30 UTC 2012 --- testing/xcompmgr/PKGBUILD | 33 ++++++++++++++++++++++++++++++++ testing/xcompmgr/fix_broken_shadows.diff | 28 +++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 testing/xcompmgr/PKGBUILD create mode 100644 testing/xcompmgr/fix_broken_shadows.diff (limited to 'testing/xcompmgr') diff --git a/testing/xcompmgr/PKGBUILD b/testing/xcompmgr/PKGBUILD new file mode 100644 index 000000000..f9439333a --- /dev/null +++ b/testing/xcompmgr/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 165902 2012-09-03 10:37:05Z andyrtr $ +# Maintainer: Jan de Groot +# Contributor: Leslie P. Polzer + +pkgname=xcompmgr +pkgver=1.1.6 +pkgrel=2 +pkgdesc="Composite Window-effects manager for X.org" +arch=('i686' 'x86_64') +url="http://xorg.freedesktop.org/" +license=('custom') +depends=('libxcomposite' 'libxdamage' 'libxrender' 'libxext') +conflicts=('xapps') +replaces=('xapps') +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 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" +} diff --git a/testing/xcompmgr/fix_broken_shadows.diff b/testing/xcompmgr/fix_broken_shadows.diff new file mode 100644 index 000000000..39b8ac725 --- /dev/null +++ b/testing/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; -- cgit v1.2.3-54-g00ecf