diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-07-17 17:40:42 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-07-17 17:40:42 +0100 |
commit | 88efbf3dd1d5df15581fb83566c0e087b89bf33d (patch) | |
tree | 5adc973890326d83f68c79d7fbdb9f74a9e30080 | |
parent | 4d8a646958fa2e0c8fe9d8da3dd26357e8bb4317 (diff) |
removed compiler warning if XINERAMA is disabled
-rw-r--r-- | dmenu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -586,7 +586,7 @@ run(void) { | |||
586 | 586 | ||
587 | void | 587 | void |
588 | setup(Bool topbar) { | 588 | setup(Bool topbar) { |
589 | int i, j, n, x, y; | 589 | int i, j, x, y; |
590 | XModifierKeymap *modmap; | 590 | XModifierKeymap *modmap; |
591 | XSetWindowAttributes wa; | 591 | XSetWindowAttributes wa; |
592 | #if XINERAMA | 592 | #if XINERAMA |
@@ -619,6 +619,7 @@ setup(Bool topbar) { | |||
619 | mh = dc.font.height + 2; | 619 | mh = dc.font.height + 2; |
620 | #if XINERAMA | 620 | #if XINERAMA |
621 | if(XineramaIsActive(dpy)) { | 621 | if(XineramaIsActive(dpy)) { |
622 | int n; | ||
622 | i = 0; | 623 | i = 0; |
623 | info = XineramaQueryScreens(dpy, &n); | 624 | info = XineramaQueryScreens(dpy, &n); |
624 | if(n > 1) { | 625 | if(n > 1) { |