From 88efbf3dd1d5df15581fb83566c0e087b89bf33d Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Thu, 17 Jul 2008 17:40:42 +0100 Subject: removed compiler warning if XINERAMA is disabled --- dmenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmenu.c b/dmenu.c index e487333..863a262 100644 --- a/dmenu.c +++ b/dmenu.c @@ -586,7 +586,7 @@ run(void) { void setup(Bool topbar) { - int i, j, n, x, y; + int i, j, x, y; XModifierKeymap *modmap; XSetWindowAttributes wa; #if XINERAMA @@ -619,6 +619,7 @@ setup(Bool topbar) { mh = dc.font.height + 2; #if XINERAMA if(XineramaIsActive(dpy)) { + int n; i = 0; info = XineramaQueryScreens(dpy, &n); if(n > 1) { -- cgit v1.2.3-70-g09d2