mirror of
https://github.com/LukeSmithxyz/dwm.git
synced 2026-10-05 14:22:31 +03:00
restricting number of mons by length of monsyms
This commit is contained in:
@@ -1690,6 +1690,8 @@ updategeom(void) {
|
||||
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))))
|
||||
|
||||
Reference in New Issue
Block a user