Browse Source

applied Hiltjo Posthuma's double-XineramaQueryScreens() patch, thanks Hiltjo!

config
Anselm R Garbe 14 years ago
parent
commit
36311d88af
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      dwm.c

+ 0
- 1
dwm.c View File

@ -1791,7 +1791,6 @@ updategeom(void) {
XineramaScreenInfo *info = XineramaQueryScreens(dpy, &nn); XineramaScreenInfo *info = XineramaQueryScreens(dpy, &nn);
XineramaScreenInfo *unique = NULL; XineramaScreenInfo *unique = NULL;
info = XineramaQueryScreens(dpy, &nn);
for(n = 0, m = mons; m; m = m->next, n++); for(n = 0, m = mons; m; m = m->next, n++);
/* only consider unique geometries as separate screens */ /* only consider unique geometries as separate screens */
if(!(unique = (XineramaScreenInfo *)malloc(sizeof(XineramaScreenInfo) * nn))) if(!(unique = (XineramaScreenInfo *)malloc(sizeof(XineramaScreenInfo) * nn)))


Loading…
Cancel
Save