tpotential crash fix if xinerama behaves broken, though I doubt it - dwm - [fork] customized build of dwm, the dynamic window manager (HTM) git clone git://src.adamsgaard.dk/dwm (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 6fad4c49f17f154b49846d379e347897b747f793 (DIR) parent 78f0f8595fbd51f56eb450f50282870e95dcf7f8 (HTM) Author: Anselm R Garbe <garbeam@gmail.com> Date: Fri, 18 Jul 2008 20:18:45 +0100 potential crash fix if xinerama behaves broken, though I doubt it Diffstat: M dwm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- (DIR) diff --git a/dwm.c b/dwm.c t@@ -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;