pinentry-dmenu

a pinentry program based on dmenu
git clone anongit@rnpnr.xyz:pinentry-dmenu.git
Log | Files | Refs | Feed | README | LICENSE

Commit: d5ff854418620052ec56035dd50e034b7209b67e
Parent: 34729089e0b75dc122f0823d8b9b6e2fac74bfe8
Author: Hiltjo Posthuma
Date:   Thu,  4 Jan 2018 23:45:49 +0100

Fix regression in 84a1bc5

Reported by Jochen Sprickerhof, thanks!

Applied patch with minor change (only initialize `i` for XINERAMA).

Diffstat:
Mpinentry-dmenu.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c @@ -270,7 +270,7 @@ drawwin(void) { static void setup(void) { - int x, y, i, j = 0; + int x, y, i, j; unsigned int du; XSetWindowAttributes swa; XIM xim; @@ -294,6 +294,7 @@ setup(void) bh = MAX(bh, lineheight); mh = bh; #ifdef XINERAMA + i = 0; info = XineramaQueryScreens(dpy, &n); if (parentwin == root && info) {