aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2013-05-11 21:46:27 +0000
committerokan2013-05-11 21:46:27 +0000
commit4b59df09f499f58b09ee0ed3be0bbab3f4e78638 (patch)
tree48e6c8131750fcc418da38d1ea8b1a53c12abd8a /conf.c
parent4fd30cca079892e19dd55a6d2c568c383edd7b06 (diff)
downloadcwm-4b59df09f499f58b09ee0ed3be0bbab3f4e78638.tar.gz
replace conf_{gap,color,font} with conf_screen since really we are
configuring the screen *after* parsing, just as we do a conf_client on client manage.
Diffstat (limited to '')
-rw-r--r--conf.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/conf.c b/conf.c
index c2c3bbb..0113167 100644
--- a/conf.c
+++ b/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.125 2013/05/10 16:32:48 okan Exp $
+ * $OpenBSD: conf.c,v 1.126 2013/05/11 21:46:27 okan Exp $
*/
#include <sys/param.h>
@@ -84,18 +84,6 @@ conf_ignore(struct conf *c, char *val)
TAILQ_INSERT_TAIL(&c->ignoreq, wm, entry);
}
-void
-conf_gap(struct conf *c, struct screen_ctx *sc)
-{
- sc->gap = c->gap;
-}
-
-void
-conf_font(struct conf *c, struct screen_ctx *sc)
-{
- font_init(sc, c->font, (const char **)c->menucolor);
-}
-
static char *menu_color_binds[CWM_COLOR_MENU_MAX] = {
"black", /* CWM_COLOR_MENU_FG */
"white", /* CWM_COLOR_MENU_BG */
@@ -111,12 +99,16 @@ static char *color_binds[CWM_COLOR_BORDER_MAX] = {
};
void
-conf_color(struct conf *c, struct screen_ctx *sc)
+conf_screen(struct screen_ctx *sc)
{
int i;
+ sc->gap = Conf.gap;
+
+ font_init(sc, Conf.font, (const char **)Conf.menucolor);
+
for (i = 0; i < CWM_COLOR_BORDER_MAX; i++)
- sc->color[i] = xu_getcolor(sc, c->color[i]);
+ sc->color[i] = xu_getcolor(sc, Conf.color[i]);
}
static struct {