From ee7df6a95f80bebc9ec2d8571c1ff8ff2f53cfd0 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 8 Dec 2009 16:52:17 +0000 Subject: start fixing screen_ctx usage, for it is utterly broken. bring font into screen_ctx and start passing screen_ctx around to in order get rid of Curscreen; fixup per-screen config colors the same way. diff mostly from oga@, with a bit harsher reaction to the state of screen_ctx. "please commit" oga@ --- calmwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calmwm.c') diff --git a/calmwm.c b/calmwm.c index 37fa473..8cc62d5 100644 --- a/calmwm.c +++ b/calmwm.c @@ -156,10 +156,10 @@ x_setupscreen(struct screen_ctx *sc, u_int which) sc->xmax = DisplayWidth(X_Dpy, sc->which); sc->ymax = DisplayHeight(X_Dpy, sc->which); - conf_color(&Conf); + conf_color(&Conf, sc); font_init(sc); - conf_font(&Conf); + conf_font(&Conf, sc); TAILQ_INIT(&sc->mruq); -- cgit 1.4.1