all repos — dmenu @ 889512811d7ae410eb4ab60be3568278b3e23f2e

my build of dmenu

Fix regression in 84a1bc5

Reported by Jochen Sprickerhof, thanks!

Applied patch with minor change (only initialize `i` for XINERAMA).
Hiltjo Posthuma hiltjo@codemadness.org
Thu, 04 Jan 2018 23:45:49 +0100
commit

889512811d7ae410eb4ab60be3568278b3e23f2e

parent

84a1bc5d0d6b54eb23268e8f02a787be9ccbd919

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M dmenu.cdmenu.c

@@ -541,7 +541,7 @@

static void setup(void) { - int x, y, i, j = 0; + int x, y, i, j; unsigned int du; XSetWindowAttributes swa; XIM xim;

@@ -565,6 +565,7 @@ bh = drw->fonts->h + 2;

lines = MAX(lines, 0); mh = (lines + 1) * bh; #ifdef XINERAMA + i = 0; if (parentwin == root && (info = XineramaQueryScreens(dpy, &n))) { XGetInputFocus(dpy, &w, &di); if (mon >= 0 && mon < n)