X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=dmenu.c;fp=dmenu.c;h=a2461115ec253a051d2f3438890eb7944ffe2ccf;hb=889512811d7ae410eb4ab60be3568278b3e23f2e;hp=3c261c0b0a8131680e0e8bde1b022ee108cf0d0a;hpb=84a1bc5d0d6b54eb23268e8f02a787be9ccbd919;p=dmenu.git diff --git a/dmenu.c b/dmenu.c index 3c261c0..a246111 100644 --- a/dmenu.c +++ b/dmenu.c @@ -541,7 +541,7 @@ run(void) 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 @@ setup(void) 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)