diff options
| author | Anselm R Garbe <[email protected]> | 2008-07-18 20:18:45 +0100 |
|---|---|---|
| committer | Anselm R Garbe <[email protected]> | 2008-07-18 20:18:45 +0100 |
| commit | 6fad4c49f17f154b49846d379e347897b747f793 (patch) | |
| tree | efd6ef432371aa15df1cdb36272a37745d45bfa1 | |
| parent | make hg tip compilable with default config (diff) | |
| download | dwm-6fad4c49f17f154b49846d379e347897b747f793.tar.gz dwm-6fad4c49f17f154b49846d379e347897b747f793.tar.bz2 dwm-6fad4c49f17f154b49846d379e347897b747f793.zip | |
potential crash fix if xinerama behaves broken, though I doubt it
| -rw-r--r-- | dwm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c index 34bcd99..52bb9f1 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; |