summaryrefslogtreecommitdiff
path: root/x11/fspanel/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'x11/fspanel/patches/patch-ab')
-rw-r--r--x11/fspanel/patches/patch-ab17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/fspanel/patches/patch-ab b/x11/fspanel/patches/patch-ab
new file mode 100644
index 00000000000..66f18d58132
--- /dev/null
+++ b/x11/fspanel/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2005/03/17 15:49:54 wiz Exp $
+
+--- fspanel.c.orig 2002-06-23 07:12:50.000000000 +0200
++++ fspanel.c
+@@ -559,10 +559,10 @@ gui_draw_task (task *tk)
+
+ /* check how many chars can fit */
+ len = strlen (tk->name);
+- while (1)
++ while (len > 0)
+ {
+ XftTextExtents8 (dd, xfs, tk->name, len, &ext);
+- if (ext.width < taskw - (text_x - x) - 2 && len > 0)
++ if (ext.width < taskw - (text_x - x) - 2)
+ break;
+ len--;
+ }