all repos — dwm @ 5e408d8ff65c8609898ad792cdeeac443f28be7a

my dwm build

restricting number of mons by length of monsyms
Anselm R Garbe garbeam@gmail.com
Thu, 09 Jul 2009 11:21:06 +0100
commit

5e408d8ff65c8609898ad792cdeeac443f28be7a

parent

1724f7fa43f9b2a3a3479c365e685ba23327ce2c

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M config.def.hconfig.def.h

@@ -14,7 +14,7 @@ static const Bool showbar = True; /* False means no bar */

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" };
M dwm.cdwm.c

@@ -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))))