Re: [wmii] window menu does not displays right

From: Alex Kilgore <adkilgore_AT_gmail.com>
Date: Thu, 29 Jan 2009 20:43:55 -0500

pod wrote:
>>>>>> "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;
>
>
That patch did the trick for me!! =D
Thanks so much!
Alex
Received on Fri Jan 30 2009 - 01:43:55 UTC

This archive was generated by hypermail 2.2.0 : Fri Jan 30 2009 - 01:48:06 UTC