aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/dmenu.c b/dmenu.c
index 863a262..1206e95 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -587,11 +587,12 @@ run(void) {
587void 587void
588setup(Bool topbar) { 588setup(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;