Commit Diff


commit - 1724f7fa43f9b2a3a3479c365e685ba23327ce2c
commit + 5e408d8ff65c8609898ad792cdeeac443f28be7a
blob - dfbbdd17747d6b62bfb79ab38f2cc5d6eeab7cfb
blob + 4dfc11b0058b7420497ebcf59deee6cf205f3073
--- config.def.h
+++ config.def.h
@@ -14,7 +14,7 @@ static const Bool showbar           = True;     /* Fal
 static const Bool topbar            = True;     /* False means bottom bar */
 
 /* monitor(s) symbols */
-static const char *monsyms[] = { "<1>", "<2>", "<3>", "<4>", "<5>" };
+static const char *monsyms[] = { "<1>", "<2>", "<3>", "<4>" };
 
 /* tagging */
 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
blob - 17d5218cda906940f555b37f02043546dfd48353
blob + fa5fdea3a8787f0289a0c7ae67c5b5500f7cf36e
--- dwm.c
+++ 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))))