diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-07-18 20:20:19 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-07-18 20:20:19 +0100 |
commit | 698ec259afd804316922a9092493b69e0470292f (patch) | |
tree | 84118f90401a193c3b56a53a0ff948ee67019d0d | |
parent | 88efbf3dd1d5df15581fb83566c0e087b89bf33d (diff) |
similiar change as in dwm
-rw-r--r-- | dmenu.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -587,11 +587,12 @@ run(void) { | |||
587 | void | 587 | void |
588 | setup(Bool topbar) { | 588 | setup(Bool topbar) { |
589 | int i, j, x, y; | 589 | int i, j, x, y; |
590 | XModifierKeymap *modmap; | ||
591 | XSetWindowAttributes wa; | ||
592 | #if XINERAMA | 590 | #if XINERAMA |
591 | int n; | ||
593 | XineramaScreenInfo *info = NULL; | 592 | XineramaScreenInfo *info = NULL; |
594 | #endif | 593 | #endif |
594 | XModifierKeymap *modmap; | ||
595 | XSetWindowAttributes wa; | ||
595 | 596 | ||
596 | /* init modifier map */ | 597 | /* init modifier map */ |
597 | modmap = XGetModifierMapping(dpy); | 598 | modmap = XGetModifierMapping(dpy); |
@@ -618,10 +619,8 @@ setup(Bool topbar) { | |||
618 | /* menu window geometry */ | 619 | /* menu window geometry */ |
619 | mh = dc.font.height + 2; | 620 | mh = dc.font.height + 2; |
620 | #if XINERAMA | 621 | #if XINERAMA |
621 | if(XineramaIsActive(dpy)) { | 622 | if(XineramaIsActive(dpy) && (info = XineramaQueryScreens(dpy, &n))) { |
622 | int n; | ||
623 | i = 0; | 623 | i = 0; |
624 | info = XineramaQueryScreens(dpy, &n); | ||
625 | if(n > 1) { | 624 | if(n > 1) { |
626 | int di; | 625 | int di; |
627 | unsigned int dui; | 626 | unsigned int dui; |