aboutsummarylogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe2009-07-09 11:21:06 +0100
committerAnselm R Garbe2009-07-09 11:21:06 +0100
commit7d51e3c323853d31b42b552eb31f198fa739937c (patch)
tree90eb673a07aaad9aaade6e2aa9b788a6f016f51c /dwm.c
parent8e5e4c37b2e598a0089994b8ec80e5a46aa8ad43 (diff)
downloadaur-7d51e3c323853d31b42b552eb31f198fa739937c.tar.gz
restricting number of mons by length of monsyms
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 17d5218cda90..fa5fdea3a878 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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))))