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) | |
download | dmenu-698ec259afd804316922a9092493b69e0470292f.tar.gz dmenu-698ec259afd804316922a9092493b69e0470292f.tar.bz2 dmenu-698ec259afd804316922a9092493b69e0470292f.zip |
similiar change as in dwm
-rw-r--r-- | dmenu.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -587,11 +587,12 @@ run(void) { void setup(Bool topbar) { int i, j, x, y; - XModifierKeymap *modmap; - XSetWindowAttributes wa; #if XINERAMA + int n; XineramaScreenInfo *info = NULL; #endif + XModifierKeymap *modmap; + XSetWindowAttributes wa; /* init modifier map */ modmap = XGetModifierMapping(dpy); @@ -618,10 +619,8 @@ setup(Bool topbar) { /* menu window geometry */ mh = dc.font.height + 2; #if XINERAMA - if(XineramaIsActive(dpy)) { - int n; + if(XineramaIsActive(dpy) && (info = XineramaQueryScreens(dpy, &n))) { i = 0; - info = XineramaQueryScreens(dpy, &n); if(n > 1) { int di; unsigned int dui; |