changeset 1453 | 0082921983cb |
parent 1452 | 769fb14ae867 |
child 1454 | b55c7bd92fda |
--- a/dwm.c Wed Jul 08 18:59:20 2009 +0100 +++ b/dwm.c Thu Jul 09 11:21:06 2009 +0100 @@ -1690,6 +1690,8 @@ if(XineramaIsActive(dpy)) info = XineramaQueryScreens(dpy, &n); #endif /* XINERAMA */ + if(n > LENGTH(monsyms)) + n = LENGTH(monsyms); /* allocate monitor(s) for the new geometry setup */ for(i = 0; i < n; i++) { if(!(m = (Monitor *)malloc(sizeof(Monitor))))