summaryrefslogtreecommitdiff
path: root/x11-wm/afterstep/files/patch-afterstep__icons.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 16:36:06 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 16:36:06 +0000
commit0ce9c970cf1f04781b118a59f97f3eb1664b66e8 (patch)
treef7a394b0aac405fa51a73c089493e2d03e9df09a /x11-wm/afterstep/files/patch-afterstep__icons.c
parent- Fix the implicit requirement lines of the pkg-config files to use libav's (diff)
Rename x11-*/ patch-xy patches to reflect the files they modify.
Finally, this is the last of it.
Diffstat (limited to 'x11-wm/afterstep/files/patch-afterstep__icons.c')
-rw-r--r--x11-wm/afterstep/files/patch-afterstep__icons.c21
1 files changed, 21 insertions, 0 deletions
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 000000000000..04bd11ae88a1
--- /dev/null
+++ b/x11-wm/afterstep/files/patch-afterstep__icons.c
@@ -0,0 +1,21 @@
+$FreeBSD: /tmp/pcvs/ports/x11-wm/afterstep/files/patch-icons.c,v 1.1 2005-10-24 14:19:00 dinoex Exp $
+
+--- 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;