summaryrefslogtreecommitdiff
path: root/x11/xcompmgr
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2008-02-16 07:18:45 +0000
committerbjs <bjs@pkgsrc.org>2008-02-16 07:18:45 +0000
commit297d1fc6f6efd696cf6095e9612917b8f9c0007e (patch)
treef58b061c52e2477903fe132a3b821ab735cef0f8 /x11/xcompmgr
parent6d52c44867678df04e1bdacb535798e0d5bdb0dd (diff)
downloadpkgsrc-297d1fc6f6efd696cf6095e9612917b8f9c0007e.tar.gz
Correct XCOMPMGR_DEFS defines in Makefile to reflect reality, and comment
them out as we'll go with the defaults for now. Also, add a patch from GIT to fix a resource leak. Bump rev.
Diffstat (limited to 'x11/xcompmgr')
-rw-r--r--x11/xcompmgr/Makefile16
-rw-r--r--x11/xcompmgr/distinfo4
-rw-r--r--x11/xcompmgr/patches/patch-aa40
3 files changed, 36 insertions, 24 deletions
diff --git a/x11/xcompmgr/Makefile b/x11/xcompmgr/Makefile
index ab1a4c9181a..a2924db2d71 100644
--- a/x11/xcompmgr/Makefile
+++ b/x11/xcompmgr/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.21 2007/12/19 05:43:30 bjs Exp $
+# $NetBSD: Makefile,v 1.22 2008/02/16 07:18:45 bjs Exp $
#
DISTNAME= xcompmgr-1.1.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= x11
MASTER_SITES= http://xapps.freedesktop.org/release/
@@ -19,12 +19,12 @@ USE_FEATURES= getopt_long
### XXX You may play around with these if you like; they're simply
### the #defines from xcompmgr.c placed here for your convenience.
#
-XCOMPMGR_DEFS+= -DREPAINT_MONITOR=0 # default: 0 (?)
-XCOMPMGR_DEFS+= -DCAN_DO_USABLE=1 # default: 0 (damage notification)
-XCOMPMGR_DEFS+= -DDEBUG_REPAINT=0 # default: 0 (debugging)
-XCOMPMGR_DEFS+= -DDEBUG_REPAINT=0 # default: 0 (debugging)
-XCOMPMGR_DEFS+= -DSHADOWS=1 # default: 1 (shadow support)
-XCOMPMGR_DEFS+= -DSHARP_SHADOW=0 # default 0 (?)
+#XCOMPMGR_DEFS+= -DCAN_DO_USABLE=0 # default: 0 (damage notification)
+#XCOMPMGR_DEFS+= -DMONITOR_REPAINT=0 # default: 0 (?)
+#XCOMPMGR_DEFS+= -DDEBUG_REPAINT=0 # default: 0 (debugging)
+#XCOMPMGR_DEFS+= -DDEBUG_EVENTS=0 # default: 0 (debugging)
+#XCOMPMGR_DEFS+= -DSHADOWS=1 # default: 1 (shadow support)
+#XCOMPMGR_DEFS+= -DSHARP_SHADOW=0 # default 0 (?)
CPPFLAGS+= ${XCOMPMGR_DEFS}
diff --git a/x11/xcompmgr/distinfo b/x11/xcompmgr/distinfo
index 7815c886912..90bf8aa4f3b 100644
--- a/x11/xcompmgr/distinfo
+++ b/x11/xcompmgr/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2007/12/19 05:43:30 bjs Exp $
+$NetBSD: distinfo,v 1.6 2008/02/16 07:18:45 bjs Exp $
SHA1 (xcompmgr-1.1.3.tar.gz) = d7600dbec8fe812f5a46772c67731dca83c7bf83
RMD160 (xcompmgr-1.1.3.tar.gz) = 65c7c045a0c1361b0dfa346cdc73439ad0db0f2c
Size (xcompmgr-1.1.3.tar.gz) = 79840 bytes
-SHA1 (patch-aa) = 1f12076c066922363b65744263605c257b1911e4
+SHA1 (patch-aa) = 1d09f7575372509157f17b56be891176123bec88
diff --git a/x11/xcompmgr/patches/patch-aa b/x11/xcompmgr/patches/patch-aa
index 237a1b47f73..e82dd58c357 100644
--- a/x11/xcompmgr/patches/patch-aa
+++ b/x11/xcompmgr/patches/patch-aa
@@ -1,5 +1,5 @@
-$NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
-
+--- xcompmgr.c.orig 2005-10-06 20:08:02.000000000 -0400
++++ xcompmgr.c 2008-02-16 02:10:37.000000000 -0500
--- xcompmgr.c.orig 2005-10-06 20:08:02.000000000 -0400
+++ xcompmgr.c
@@ -36,6 +36,13 @@
@@ -66,7 +66,7 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
+
+ while (next)
{
-+ fade *f = next;
++ fade *f = next;
win *w = f->w;
next = f->next;
f->cur += f->step * steps;
@@ -147,11 +147,23 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
if (w->id == id)
{
- if (!gone)
-+ if (gone)
++ if (gone)
finish_unmap_win (dpy, w);
*prev = w->next;
if (w->picture)
-@@ -1734,7 +1754,7 @@ static int
+@@ -1618,6 +1638,11 @@ finish_destroy_win (Display *dpy, Window
+ XRenderFreePicture (dpy, w->shadowPict);
+ w->shadowPict = None;
+ }
++ if (w->shadow)
++ {
++ XRenderFreePicture (dpy, w->shadow);
++ w->shadow = None;
++ }
+ if (w->damage != None)
+ {
+ set_ignore (dpy, NextRequest (dpy));
+@@ -1734,7 +1759,7 @@ static int
error (Display *dpy, XErrorEvent *ev)
{
int o;
@@ -160,7 +172,7 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
if (should_ignore (dpy, ev->serial))
return 0;
-@@ -1766,7 +1786,7 @@ error (Display *dpy, XErrorEvent *ev)
+@@ -1766,7 +1791,7 @@ error (Display *dpy, XErrorEvent *ev)
default: break;
}
@@ -169,7 +181,7 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
ev->error_code, ev->request_code, ev->minor_code, ev->serial);
/* abort (); this is just annoying to most people */
-@@ -1781,7 +1801,7 @@ expose_root (Display *dpy, Window root,
+@@ -1781,7 +1806,7 @@ expose_root (Display *dpy, Window root,
add_damage (dpy, region);
}
@@ -178,7 +190,7 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
static int
ev_serial (XEvent *ev)
{
-@@ -1790,7 +1810,6 @@ ev_serial (XEvent *ev)
+@@ -1790,7 +1815,6 @@ ev_serial (XEvent *ev)
return NextRequest (ev->xany.display);
}
@@ -186,7 +198,7 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
static char *
ev_name (XEvent *ev)
{
-@@ -1834,11 +1853,12 @@ ev_window (XEvent *ev)
+@@ -1834,11 +1858,12 @@ ev_window (XEvent *ev)
return 0;
}
}
@@ -200,7 +212,7 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
fprintf (stderr, "usage: %s [options]\n", program);
fprintf (stderr, "Options\n");
fprintf (stderr, " -d display\n Specifies which display should be managed.\n");
-@@ -1861,15 +1881,21 @@ usage (char *program)
+@@ -1861,15 +1886,21 @@ usage (char *program)
}
static void
@@ -223,7 +235,7 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
}
int
-@@ -1878,19 +1904,13 @@ main (int argc, char **argv)
+@@ -1878,19 +1909,13 @@ main (int argc, char **argv)
XEvent ev;
Window root_return, parent_return;
Window *children;
@@ -243,7 +255,7 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
int p;
int composite_major, composite_minor;
char *display = 0;
-@@ -1999,7 +2019,7 @@ main (int argc, char **argv)
+@@ -1999,7 +2024,7 @@ main (int argc, char **argv)
exit (1);
}
@@ -252,12 +264,12 @@ $NetBSD: patch-aa,v 1.1 2007/12/19 05:43:30 bjs Exp $
/* get atoms */
opacityAtom = XInternAtom (dpy, OPACITY_PROP, False);
-@@ -2071,7 +2091,7 @@ main (int argc, char **argv)
+@@ -2071,7 +2096,7 @@ main (int argc, char **argv)
}
XNextEvent (dpy, &ev);
- if (ev.type & 0x7f != KeymapNotify)
-+ if ((ev.type & 0x7f) != KeymapNotify)
++ if ((ev.type & 0x7f) != KeymapNotify)
discard_ignore (dpy, ev.xany.serial);
#if DEBUG_EVENTS
printf ("event %10.10s serial 0x%08x window 0x%08x\n",