diff options
author | Thomas Gardner <tmg@fastmail.com> | 2016-11-25 22:38:09 +1000 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-11-25 14:21:40 +0100 |
commit | e90b88e12a88d6214c00d5ee58ceb69446aa5ac4 (patch) | |
tree | f3184ddf1a3689a5961d3c15c270a86688d85330 | |
parent | a280bdad1f16943a70eaff086852d3b11043b060 (diff) |
Xinerama: correct variable declarations in preprocessor conditional
-rw-r--r-- | dmenu.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -539,15 +539,16 @@ run(void) | |||
539 | static void | 539 | static void |
540 | setup(void) | 540 | setup(void) |
541 | { | 541 | { |
542 | int x, y; | 542 | int x, y, i = 0; |
543 | unsigned int du; | ||
543 | XSetWindowAttributes swa; | 544 | XSetWindowAttributes swa; |
544 | XIM xim; | 545 | XIM xim; |
546 | Window w, dw, *dws; | ||
547 | XWindowAttributes wa; | ||
545 | #ifdef XINERAMA | 548 | #ifdef XINERAMA |
546 | XineramaScreenInfo *info; | 549 | XineramaScreenInfo *info; |
547 | Window w, pw, dw, *dws; | 550 | Window pw; |
548 | XWindowAttributes wa; | 551 | int a, j, di, n, area = 0; |
549 | int a, j, di, n, i = 0, area = 0; | ||
550 | unsigned int du; | ||
551 | #endif | 552 | #endif |
552 | 553 | ||
553 | /* init appearance */ | 554 | /* init appearance */ |