all repos — dwm @ 6fad4c49f17f154b49846d379e347897b747f793

my dwm build

potential crash fix if xinerama behaves broken, though I doubt it
Anselm R Garbe garbeam@gmail.com
Fri, 18 Jul 2008 20:18:45 +0100
commit

6fad4c49f17f154b49846d379e347897b747f793

parent

78f0f8595fbd51f56eb450f50282870e95dcf7f8

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M dwm.cdwm.c

@@ -1562,8 +1562,7 @@ int n, i = 0;

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;