pinosaur
/
dwm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78f0f85
)
potential crash fix if xinerama behaves broken, though I doubt it
author
Anselm R Garbe
<garbeam@gmail.com>
Fri, 18 Jul 2008 19:18:45 +0000
(20:18 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Fri, 18 Jul 2008 19:18:45 +0000
(20:18 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
34bcd99
..
52bb9f1
100644
(file)
--- 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;