summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-07-18 20:18:45 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-07-18 20:18:45 +0100
commit6fad4c49f17f154b49846d379e347897b747f793 (patch)
treeefd6ef432371aa15df1cdb36272a37745d45bfa1 /dwm.c
parentmake hg tip compilable with default config (diff)
downloaddwm-6fad4c49f17f154b49846d379e347897b747f793.tar.gz
dwm-6fad4c49f17f154b49846d379e347897b747f793.zip
potential crash fix if xinerama behaves broken, though I doubt it
Diffstat (limited to '')
-rw-r--r--dwm.c3
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) {
1562 XineramaScreenInfo *info = NULL; 1562 XineramaScreenInfo *info = NULL;
1563 1563
1564 /* window area geometry */ 1564 /* window area geometry */
1565 if(XineramaIsActive(dpy)) { 1565 if(XineramaIsActive(dpy) && (info = XineramaQueryScreens(dpy, &n))) {
1566 info = XineramaQueryScreens(dpy, &n);
1567 if(n > 1) { 1566 if(n > 1) {
1568 int di, x, y; 1567 int di, x, y;
1569 unsigned int dui; 1568 unsigned int dui;