[hackers] [PATCH][dmenu] Xinerama: correct variable declarations in preprocessor conditional

From: Thomas Gardner <tmg_AT_fastmail.com>
Date: Fri, 25 Nov 2016 10:55:02 +1000

Greetings,

The config.mk option must never have been rigorously tested.

---
 dmenu.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dmenu.c b/dmenu.c
index 9278e91..6512844 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -544,11 +544,13 @@ setup(void)
 	XIM xim;
 #ifdef XINERAMA
 	XineramaScreenInfo *info;
-	Window w, pw, dw, *dws;
+	Window pw;
+	int a, j, di, n, area = 0;
+#endif
+	Window w, dw, *dws;
 	XWindowAttributes wa;
-	int a, j, di, n, i = 0, area = 0;
 	unsigned int du;
-#endif
+	int i = 0;
 
 	/* init appearance */
 	scheme[SchemeNorm] = drw_scm_create(drw, colors[SchemeNorm], 2);
-- 
2.10.2
Received on Fri Nov 25 2016 - 01:55:02 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 25 2016 - 02:00:18 CET