diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-01-04 23:45:49 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-01-04 23:45:49 +0100 |
commit | 889512811d7ae410eb4ab60be3568278b3e23f2e (patch) | |
tree | 4e4f1646548972d9d4bac6fc82832041dce03af7 | |
parent | 84a1bc5d0d6b54eb23268e8f02a787be9ccbd919 (diff) |
Fix regression in 84a1bc5
Reported by Jochen Sprickerhof, thanks!
Applied patch with minor change (only initialize `i` for XINERAMA).
-rw-r--r-- | dmenu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -541,7 +541,7 @@ run(void) | |||
541 | static void | 541 | static void |
542 | setup(void) | 542 | setup(void) |
543 | { | 543 | { |
544 | int x, y, i, j = 0; | 544 | int x, y, i, j; |
545 | unsigned int du; | 545 | unsigned int du; |
546 | XSetWindowAttributes swa; | 546 | XSetWindowAttributes swa; |
547 | XIM xim; | 547 | XIM xim; |
@@ -565,6 +565,7 @@ setup(void) | |||
565 | lines = MAX(lines, 0); | 565 | lines = MAX(lines, 0); |
566 | mh = (lines + 1) * bh; | 566 | mh = (lines + 1) * bh; |
567 | #ifdef XINERAMA | 567 | #ifdef XINERAMA |
568 | i = 0; | ||
568 | if (parentwin == root && (info = XineramaQueryScreens(dpy, &n))) { | 569 | if (parentwin == root && (info = XineramaQueryScreens(dpy, &n))) { |
569 | XGetInputFocus(dpy, &w, &di); | 570 | XGetInputFocus(dpy, &w, &di); |
570 | if (mon >= 0 && mon < n) | 571 | if (mon >= 0 && mon < n) |