>>>>> "AK" == Alex Kilgore <[email protected]> writes:

    AK> I filed this as a bug some time ago, whether it is a bug or not, i have 
    AK> the same problem, see issue 64

I have observed the same problem.  I think the problem is that wide is
used uninitialised in run_menu().  Following patch apparently fixes it for
me.

diff -r 7f43306e0fed cmd/wmii9menu.c
--- a/cmd/wmii9menu.c   Wed Jan 28 18:35:53 2009 -0500
+++ b/cmd/wmii9menu.c   Thu Jan 29 19:10:52 2009 +0000
@@ -209,6 +209,7 @@ run_menu(void)
        int i, old, wide, high;
 
        high = labelh(font);
+       wide = 0;
        for(i = 0; i < numitems; i++)
                wide = max(wide, textwidth(font, labels[i]));
        wide += font->height & ~1;

Reply via email to