Re: [hackers] [dmenu] inputw: improve correctness and startup performance, by NRK || Hiltjo Posthuma
How about an arbitrary default size of something like MIN(TEXTW("W") * 30,
mw / 3)?
On Sat, 30 Apr 2022, 13:46 NRK, <nrk_AT_disroot.org> 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 optimizing for that
> resolution as most people use 1080p nowadays.
>
> > Whats your suggestion to improve it in a general sense?
> >
> > The trade-off is now that for small input strings in horizontal mode it
> might
> > wastes some visual space now, but like you said it is now consistently
> in the
> > same place and also simpler.
>
> There's no right or wrong answer here, since it'll basically come down
> to personal preference.
>
> I'd say making it a config.h option (and maybe adjustable via cli as
> well) would be a good course of action. It lets people easily change it
> if they don't like the default.
>
> - NRK
>
>
Received on Sat Apr 30 2022 - 16:55:22 CEST
This archive was generated by hypermail 2.3.0
: Sun May 01 2022 - 09:48:32 CEST