summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2013-01-04 16:27:58 +0000
committerokan <okan>2013-01-04 16:27:58 +0000
commit579f981718c9444630afc34f8ab5dfe6e983427a (patch)
treefd3dd733f7574997581b31f614a19d1021f72310 /conf.c
parent96adffcd9d0187285f2236b2fd9f5646d21ee72a (diff)
downloadcwm-579f981718c9444630afc34f8ab5dfe6e983427a.tar.gz
cwm-579f981718c9444630afc34f8ab5dfe6e983427a.tar.xz
cwm-579f981718c9444630afc34f8ab5dfe6e983427a.zip
really these are just border colors, so adjust the define
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/conf.c b/conf.c
index 808a5c1..6ef9375 100644
--- a/conf.c
+++ b/conf.c
@@ -71,7 +71,7 @@ static char *menu_color_binds[CWM_COLOR_MENU_MAX] = {
 	"",		/* CWM_COLOR_MENU_FONT_SEL */
 };
 
-static char *color_binds[CWM_COLOR_MAX] = {
+static char *color_binds[CWM_COLOR_BORDER_MAX] = {
 	"#CCCCCC",	/* CWM_COLOR_BORDER_ACTIVE */
 	"#666666",	/* CWM_COLOR_BORDER_INACTIVE */
 	"blue",		/* CWM_COLOR_BORDER_GROUP */
@@ -83,7 +83,7 @@ conf_color(struct conf *c, struct screen_ctx *sc)
 {
 	int	 i;
 
-	for (i = 0; i < CWM_COLOR_MAX; i++)
+	for (i = 0; i < CWM_COLOR_BORDER_MAX; i++)
 		sc->color[i] = xu_getcolor(sc, c->color[i]);
 }
 
@@ -236,7 +236,7 @@ conf_clear(struct conf *c)
 		free(mb);
 	}
 
-	for (i = 0; i < CWM_COLOR_MAX; i++)
+	for (i = 0; i < CWM_COLOR_BORDER_MAX; i++)
 		free(c->color[i]);
 
 	free(c->font);