Browse Source

potential crash fix if xinerama behaves broken, though I doubt it

main
Anselm R Garbe 16 years ago
parent
commit
6fad4c49f1
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      dwm.c

+ 1
- 2
dwm.c View File

@ -1562,8 +1562,7 @@ updategeom(void) {
XineramaScreenInfo *info = NULL; XineramaScreenInfo *info = NULL;
/* window area geometry */ /* window area geometry */
if(XineramaIsActive(dpy)) {
info = XineramaQueryScreens(dpy, &n);
if(XineramaIsActive(dpy) && (info = XineramaQueryScreens(dpy, &n))) {
if(n > 1) { if(n > 1) {
int di, x, y; int di, x, y;
unsigned int dui; unsigned int dui;


Loading…
Cancel
Save