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