inputw: improve correctness and startup performance, by NRK
authorHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 29 Apr 2022 18:15:48 +0000 (20:15 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 29 Apr 2022 18:18:02 +0000 (20:18 +0200)
commite1e1de7b3b8399cba90ddca9613f837b2dbef7b9
tree1ad5d2e15e4bf0e32722fceb40f5a6dd993e1097
parent33685b06e9332638769e677e77b257e24e069fd1
inputw: improve correctness and startup performance, by NRK

Always use ~30% of the monitor width for the input in horizontal mode.

Patch adapted from NRK patches.
This also does not calculate inputw when using vertical mode anymore (because
the code is removed).
dmenu.c