author | Anselm R Garbe <garbeam@gmail.com> |
Fri, 18 Jul 2008 20:18:45 +0100 | |
changeset 1314 | f8c445284353 |
parent 1313 | f51eb530cabb |
child 1315 | ce355cea9bb8 |
--- a/dwm.c Fri Jul 18 10:57:32 2008 +0200 +++ b/dwm.c Fri Jul 18 20:18:45 2008 +0100 @@ -1562,8 +1562,7 @@ XineramaScreenInfo *info = NULL; /* window area geometry */ - if(XineramaIsActive(dpy)) { - info = XineramaQueryScreens(dpy, &n); + if(XineramaIsActive(dpy) && (info = XineramaQueryScreens(dpy, &n))) { if(n > 1) { int di, x, y; unsigned int dui;