summaryrefslogtreecommitdiff
path: root/app/cwm/conf.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-01-04 16:27:59 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-01-04 16:27:59 +0000
commit74cf74bf66fb4b7adda88e2ac3ec53124e923cfe (patch)
treeb34230699214d9e29a7d2fca9f92eec734fa7a45 /app/cwm/conf.c
parent8eddf8b9fd91e596cf13177f4d6d6fce3737d7d6 (diff)
really these are just border colors, so adjust the define
Diffstat (limited to 'app/cwm/conf.c')
-rw-r--r--app/cwm/conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index 5709fbf06..8c45f39c1 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.119 2013/01/04 16:23:51 okan Exp $
+ * $OpenBSD: conf.c,v 1.120 2013/01/04 16:27:58 okan Exp $
*/
#include <sys/param.h>
@@ -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);