aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gardner <tmg@fastmail.com>2016-11-25 22:38:09 +1000
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-11-25 14:21:40 +0100
commite90b88e12a88d6214c00d5ee58ceb69446aa5ac4 (patch)
treef3184ddf1a3689a5961d3c15c270a86688d85330
parenta280bdad1f16943a70eaff086852d3b11043b060 (diff)
Xinerama: correct variable declarations in preprocessor conditional
-rw-r--r--dmenu.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/dmenu.c b/dmenu.c
index 9278e91..1cfefcd 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -539,15 +539,16 @@ run(void)
539static void 539static void
540setup(void) 540setup(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 */