Re: [hackers] [dmenu] fix incorrect comment, math is hard || Hiltjo Posthuma

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sun, 1 May 2022 11:02:24 +0200

On Sun, May 01, 2022 at 02:08:58PM +0600, NRK wrote:
> Hi Quentin,
>
> On Sat, Apr 30, 2022 at 05:07:32PM +0200, Quentin Rameau wrote:
> > - inputw = mw / 3; /* input width: ~33% of monitor width */
> > + inputw = mw / 3; /* input width: ~33.333% of monitor width */
>
> You tried.
>
> diff --git a/dmenu.c b/dmenu.c
> index 571bc35..3595267 100644
> --- a/dmenu.c
> +++ b/dmenu.c
> _AT_@ -673,7 +673,7 @@ setup(void)
> mw = wa.width;
> }
> promptw = (prompt && *prompt) ? TEXTW(prompt) - lrpad / 4 : 0;
> - inputw = mw / 3; /* input width: ~33.333% of monitor width */
> + inputw = mw / 3; /* input width: 1/3rd of monitor width */
> match();
>
> /* create menu window */
>
> - NRK
>

heh

-- 
Kind regards,
Hiltjo
Received on Sun May 01 2022 - 11:02:24 CEST

This archive was generated by hypermail 2.3.0 : Sun May 01 2022 - 11:12:33 CEST