From 6fad4c49f17f154b49846d379e347897b747f793 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Fri, 18 Jul 2008 20:18:45 +0100 Subject: potential crash fix if xinerama behaves broken, though I doubt it --- dwm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 34bcd99c..52bb9f10 100644 --- a/dwm.c +++ b/dwm.c @@ -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; -- cgit v1.2.3