aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/afterstep
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-05-27 08:53:56 +0800
committerpetef <petef@FreeBSD.org>2002-05-27 08:53:56 +0800
commitec365872a5268557554b3ded1c78ef52c65a387b (patch)
treec9b229c8f144647b1a290b0494a7b0a8e995fd55 /x11-wm/afterstep
parentf6ac1f1fcab1233bb00682a997d451e15d27f812 (diff)
downloadfreebsd-ports-graphics-ec365872a5268557554b3ded1c78ef52c65a387b.tar.gz
freebsd-ports-graphics-ec365872a5268557554b3ded1c78ef52c65a387b.tar.zst
freebsd-ports-graphics-ec365872a5268557554b3ded1c78ef52c65a387b.zip
Fix a resources leak & bump PORTREVISION.
PR: 35288 Submitted by: Andriy Gapon <agapon@usa.com>
Diffstat (limited to 'x11-wm/afterstep')
-rw-r--r--x11-wm/afterstep/Makefile1
-rw-r--r--x11-wm/afterstep/files/patch-afterstep::icons.c21
2 files changed, 22 insertions, 0 deletions
diff --git a/x11-wm/afterstep/Makefile b/x11-wm/afterstep/Makefile
index cee2b9aa8f1..603e3646982 100644
--- a/x11-wm/afterstep/Makefile
+++ b/x11-wm/afterstep/Makefile
@@ -7,6 +7,7 @@
PORTNAME= afterstep
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= x11-wm afterstep
MASTER_SITES= ${MASTER_SITE_AFTERSTEP} \
ftp://ftp.cs.tu-berlin.de/pub/X/afterstep/
diff --git a/x11-wm/afterstep/files/patch-afterstep::icons.c b/x11-wm/afterstep/files/patch-afterstep::icons.c
new file mode 100644
index 00000000000..c9c43d64a78
--- /dev/null
+++ b/x11-wm/afterstep/files/patch-afterstep::icons.c
@@ -0,0 +1,21 @@
+$FreeBSD$
+
+--- afterstep/icons.c.orig Thu Mar 20 19:09:21 1997
++++ afterstep/icons.c Sun May 26 18:15:10 2002
+@@ -779,10 +779,12 @@
+ }
+ }
+
+- if(tmp_win->flags & ICON_MOVED)
+- CreateIconWindow(tmp_win,tmp_win->icon_x_loc,tmp_win->icon_y_loc);
+- else
+- CreateIconWindow(tmp_win, def_x, def_y);
++ if(tmp_win->icon_pixmap_w == None) {
++ if(tmp_win->flags & ICON_MOVED)
++ CreateIconWindow(tmp_win,tmp_win->icon_x_loc,tmp_win->icon_y_loc);
++ else
++ CreateIconWindow(tmp_win, def_x, def_y);
++ }
+
+ AutoPlace(tmp_win);
+ tmp_win->flags |= ICONIFIED;