Fix regression in 84a1bc5
88951281
Reported by Jochen Sprickerhof, thanks! Applied patch with minor change (only initialize `i` for XINERAMA).
1 file(s) · +2 −1
Reported by Jochen Sprickerhof, thanks! Applied patch with minor change (only initialize `i` for XINERAMA).
| 541 | 541 | static void |
|
| 542 | 542 | setup(void) |
|
| 543 | 543 | { |
|
| 544 | - | int x, y, i, j = 0; |
|
| 544 | + | int x, y, i, j; |
|
| 545 | 545 | unsigned int du; |
|
| 546 | 546 | XSetWindowAttributes swa; |
|
| 547 | 547 | XIM xim; |
|
| 565 | 565 | lines = MAX(lines, 0); |
|
| 566 | 566 | mh = (lines + 1) * bh; |
|
| 567 | 567 | #ifdef XINERAMA |
|
| 568 | + | i = 0; |
|
| 568 | 569 | if (parentwin == root && (info = XineramaQueryScreens(dpy, &n))) { |
|
| 569 | 570 | XGetInputFocus(dpy, &w, &di); |
|
| 570 | 571 | if (mon >= 0 && mon < n) |
|