about summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2013-06-20 02:33:57 +0000
committerokan <okan>2013-06-20 02:33:57 +0000
commit7004700ce0b216f4ea4bb84043acb311928c9a6d (patch)
treec08e19ef72a31d6c9d1064f13b4f4eaa7ad5f53a
parent234b8214df298740b37ad566771a9df2f1b3aec6 (diff)
downloadcwm-7004700ce0b216f4ea4bb84043acb311928c9a6d.tar.gz
cwm-7004700ce0b216f4ea4bb84043acb311928c9a6d.tar.xz
cwm-7004700ce0b216f4ea4bb84043acb311928c9a6d.zip
when selfont is configured, make sure we continue and configure the rest
of the screen (quick fix); discovered the hard way by Rodrigo Mosconi.
-rw-r--r--conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 6725f4b..4ee5b3f 100644
--- a/conf.c
+++ b/conf.c
@@ -121,7 +121,7 @@ conf_screen(struct screen_ctx *sc)
 		}
 	}
 	if (i == CWM_COLOR_MAX)
-		return;
+		goto out;
 
 	xu_xorcolor(sc->xftcolor[CWM_COLOR_MENU_BG],
 		    sc->xftcolor[CWM_COLOR_MENU_FG], &xc);
@@ -129,7 +129,7 @@ conf_screen(struct screen_ctx *sc)
 	if (!XftColorAllocValue(X_Dpy, sc->visual, sc->colormap,
 	    &xc.color, &sc->xftcolor[CWM_COLOR_MENU_FONT_SEL]))
 		warnx("XftColorAllocValue: '%s'", Conf.color[i]);
-
+out:
 	sc->menuwin = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1,
 	    Conf.bwidth,
 	    sc->xftcolor[CWM_COLOR_MENU_FG].pixel,