Re: [wmii] window menu does not displays right

From: pod <pod_AT_nervous-energy.org.uk>
Date: Thu, 29 Jan 2009 19:14:15 +0000 (GMT)

>>>>> "AK" == Alex Kilgore <adkilgore_AT_gmail.com> 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;
Received on Thu Jan 29 2009 - 19:14:15 UTC

This archive was generated by hypermail 2.2.0 : Thu Jan 29 2009 - 20:12:06 UTC