aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-07-17 17:40:42 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-07-17 17:40:42 +0100
commit88efbf3dd1d5df15581fb83566c0e087b89bf33d (patch)
tree5adc973890326d83f68c79d7fbdb9f74a9e30080 /dmenu.c
parent4d8a646958fa2e0c8fe9d8da3dd26357e8bb4317 (diff)
downloaddmenu-88efbf3dd1d5df15581fb83566c0e087b89bf33d.tar.gz
dmenu-88efbf3dd1d5df15581fb83566c0e087b89bf33d.tar.bz2
dmenu-88efbf3dd1d5df15581fb83566c0e087b89bf33d.zip
removed compiler warning if XINERAMA is disabled
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c3
1 files changed, 2 insertions, 1 deletions
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) {