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

2022-05-01 Thread Hiltjo Posthuma
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

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

2022-05-01 Thread NRK
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 ---

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

2022-04-30 Thread Quentin Rameau
Hi Hiljto, > fix incorrect comment, math is hard diff --git a/dmenu.c b/dmenu.c index 571bc35..3595267 100644 --- a/dmenu.c +++ b/dmenu.c @@ -673,7 +673,7 @@ setup(void) mw = wa.width; } promptw = (prompt && *prompt) ? TEXTW(prompt) - lrpad / 4 : 0; -