potential crash fix if xinerama behaves broken, though I doubt it

This commit is contained in:
Anselm R Garbe 2008-07-18 20:18:45 +01:00
parent 78f0f8595f
commit 6fad4c49f1

3
dwm.c
View file

@ -1562,8 +1562,7 @@ updategeom(void) {
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;