equal
deleted
inserted
replaced
1688 XineramaScreenInfo *info = NULL; |
1688 XineramaScreenInfo *info = NULL; |
1689 |
1689 |
1690 if(XineramaIsActive(dpy)) |
1690 if(XineramaIsActive(dpy)) |
1691 info = XineramaQueryScreens(dpy, &n); |
1691 info = XineramaQueryScreens(dpy, &n); |
1692 #endif /* XINERAMA */ |
1692 #endif /* XINERAMA */ |
|
1693 if(n > LENGTH(monsyms)) |
|
1694 n = LENGTH(monsyms); |
1693 /* allocate monitor(s) for the new geometry setup */ |
1695 /* allocate monitor(s) for the new geometry setup */ |
1694 for(i = 0; i < n; i++) { |
1696 for(i = 0; i < n; i++) { |
1695 if(!(m = (Monitor *)malloc(sizeof(Monitor)))) |
1697 if(!(m = (Monitor *)malloc(sizeof(Monitor)))) |
1696 die("fatal: could not malloc() %u bytes\n", sizeof(Monitor)); |
1698 die("fatal: could not malloc() %u bytes\n", sizeof(Monitor)); |
1697 m->next = newmons; |
1699 m->next = newmons; |