Re: [hackers] [dmenu] inputw: improve correctness and startup performance, by NRK || Hiltjo Posthuma

2022-05-01 Thread Stein Gunnar Bakkeby
How about an arbitrary default size of something like MIN(TEXTW("W") * 30, mw / 3)? On Sat, 30 Apr 2022, 13:46 NRK, wrote: > On Sat, Apr 30, 2022 at 01:28:49PM +0200, Hiltjo Posthuma wrote: > > Whats your monitor resolution width? > > I'm currently using 1366x768. Don't think it's worth optimizi

Re: [hackers] [dmenu] inputw: improve correctness and startup performance, by NRK || Hiltjo Posthuma

2022-04-30 Thread NRK
On Sat, Apr 30, 2022 at 01:28:49PM +0200, Hiltjo Posthuma wrote: > Whats your monitor resolution width? I'm currently using 1366x768. Don't think it's worth optimizing for that resolution as most people use 1080p nowadays. > Whats your suggestion to improve it in a general sense? > > The trade-o

Re: [hackers] [dmenu] inputw: improve correctness and startup performance, by NRK || Hiltjo Posthuma

2022-04-30 Thread Hiltjo Posthuma
On Sat, Apr 30, 2022 at 03:22:02PM +0600, NRK wrote: > On Sat, Apr 30, 2022 at 11:15:38AM +0200, Hiltjo Posthuma wrote: > > The previous maximum width also used about 30% of the monitor width. > > Should've clarified, I didn't quite like the previous max either. But > that wouldn't get triggered b

Re: [hackers] [dmenu] inputw: improve correctness and startup performance, by NRK || Hiltjo Posthuma

2022-04-30 Thread NRK
On Sat, Apr 30, 2022 at 11:15:38AM +0200, Hiltjo Posthuma wrote: > The previous maximum width also used about 30% of the monitor width. Should've clarified, I didn't quite like the previous max either. But that wouldn't get triggered before on small input strings. But since the width is static no

Re: [hackers] [dmenu] inputw: improve correctness and startup performance, by NRK || Hiltjo Posthuma

2022-04-30 Thread Hiltjo Posthuma
On Sat, Apr 30, 2022 at 10:45:09AM +0600, NRK wrote: > On Fri, Apr 29, 2022 at 08:19:20PM +0200, g...@suckless.org wrote: > > commit e1e1de7b3b8399cba90ddca9613f837b2dbef7b9 > > Author: Hiltjo Posthuma > > AuthorDate: Fri Apr 29 20:15:48 2022 +0200 > > Commit: Hiltjo Posthuma > > CommitDa

Re: [hackers] [dmenu] inputw: improve correctness and startup performance, by NRK || Hiltjo Posthuma

2022-04-29 Thread NRK
On Fri, Apr 29, 2022 at 08:19:20PM +0200, g...@suckless.org wrote: > commit e1e1de7b3b8399cba90ddca9613f837b2dbef7b9 > Author: Hiltjo Posthuma > AuthorDate: Fri Apr 29 20:15:48 2022 +0200 > Commit: Hiltjo Posthuma > CommitDate: Fri Apr 29 20:18:02 2022 +0200 > > inputw: improve corre

[hackers] [dmenu] inputw: improve correctness and startup performance, by NRK || Hiltjo Posthuma

2022-04-29 Thread git
commit e1e1de7b3b8399cba90ddca9613f837b2dbef7b9 Author: Hiltjo Posthuma AuthorDate: Fri Apr 29 20:15:48 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Fri Apr 29 20:18:02 2022 +0200 inputw: improve correctness and startup performance, by NRK Always use ~30% of the monitor wi