blob: 66f18d581322c7dcc0ec5651a91177820db45ccc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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--;
}
|